WinRPM.jl
WinRPM.jl copied to clipboard
File locking issue when installing packages sequentially
Based on a discussion in julia-users https://groups.google.com/forum/?fromgroups=#!topic/julia-users/t0IkwDXw5VI, I ran the following sequence of commands using the nightly 32-bit Window binary as of 2014-03-28, 64-bit Win8, no prior packages installed.
Pkg.update()
Pkg.add("Winston")
using Winston # Test the first package before adding the next
plot(0:0.01:10,sin(0:0.01:10))
Pkg.add("Requests") # This doesn't work properly
If I use the first package before installing the second one I end up with this installation error during the second Package.add
:
Processing archive: C:\Users\xyz\.julia\v0.3\WinRPM\cache\http%3a%2f%2fdownload.opensuse.org%2frepositories%2fwindows%3a%2fmingw%3a%2fwin32%2fopenSUSE_Factory%2f%0d%0a\noarch%2fmingw32-libffi-3.0.13-3.97.noarch.cpio
ERROR: Can not delete output file C:\Users\xyz\.julia\v0.3\WinRPM\deps\usr\i686-w64-mingw32\sys-root\mingw\bin\libffi-6.dll
Sub items Errors: 1
===============================[ ERROR: GnuTLS ]================================
e = 2.7182818284590...
while loading C:\Users\xyz\.julia\v0.3\GnuTLS\deps\build.jl, in expression starting on line 55
================================================================================
Apart from the somewhat amusing e = 2.7182818284590...
in the error message it seems to amount to a locked file issue. Restarting Julia and running Pkg.build("GnuTLS")
makes the "Requests" package operational.