Closed cecileane closed 8 years ago
Looks like an issue with having a space in the directory name. On Mar 17, 2016 5:46 PM, "Cécile Ané" notifications@github.com wrote:
When trying to install NLopt on Windows (64 bits Windows 7 Pro), I get this error below. I got basically the same error when trying Pkg.build("NLopt").
_
() | A fresh approach to technical computing () | () () | Documentation: http://docs.julialang.org | | | Type "?help" for help. | | | | | | |/ ` | | | | || | | | (| | | Version 0.4.3 (2016-01-12 21:37 UTC) / |_'||_|'_| | Official http://julialang.org/ release|__/ | x86_64-w64-mingw32julia> Pkg.add("NLopt")INFO: Initializing package repository C:\Users\Cecile Ane.julia\v0.4INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jlINFO: Cloning cache of BinDeps from git://github.com/JuliaLang/BinDeps.jl.gitINFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.gitINFO: Cloning cache of MathProgBase from git://github.com/JuliaOpt/MathProgBase.jl.gitINFO: Cloning cache of NLopt from git://github.com/JuliaOpt/NLopt.jl.gitINFO: Cloning cache of SHA from git://github.com/staticfloat/SHA.jl.gitINFO: Cloning cache of URIParser from git://github.com/JuliaWeb/URIParser.jl.gitINFO: Installing BinDeps v0.3.21INFO: Installing Compat v0.7.12INFO: Installing MathProgBase v0.4.2INFO: Installing NLopt v0.3.1INFO: Installing SHA v0.1.2INFO: Installing URIParser v0.1.3INFO: Building NLoptINFO: Attempting to Create directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\downloadsINFO: Downloading file http://ab-initio.mit.edu/nlopt/nlopt-2.4.1-dll32.zipINFO: Done downloading file http://ab-initio.mit.edu/nlopt/nlopt-2.4.1-dll32.zipINFO: Attempting to Create directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\downloadsINFO: Directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\downloads already createdINFO: Downloading file http://ab-initio.mit.edu/nlopt/nlopt-2.4.1-dll64.zipINFO: Done downloading file http://ab-initio.mit.edu/nlopt/nlopt-2.4.1-dll64.zipINFO: Attempting to Create directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\srcINFO: Attempting to Create directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\src\w32INFO: Attempting to Create directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\src\w64INFO: Attempting to Create directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\srcINFO: Directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\src already created7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18Processing archive: C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\downloads\nlopt-2.4.1-dll32.zipExtracting libnlopt-0.dllExtracting libnlopt-0.defExtracting nlopt.fExtracting nlopt.hExtracting nlopt.hppExtracting nlopt.pyExtracting nlopt-python.cppExtracting setup.pyExtracting READMEExtracting COPYINGExtracting COPYRIGHTExtracting NEWSExtracting README-WINDOWSExtracting matlab\NLOPT_AUGLAG_EQ.mExtracting matlab\NLOPT_AUGLAG.mExtracting matlab\NLOPT_GD_MLSL_LDS.mExtracting matlab\NLOPT_GD_MLSL.mExtracting matlab\NLOPT_GD_STOGO.mExtracting matlab\NLOPT_GD_STOGO_RAND.mExtracting matlab\NLOPT_G_MLSL_LDS.mExtracting matlab\NLOPT_G_MLSL.mExtracting matlab\NLOPT_GN_CRS2_LM.mExtracting matlab\NLOPT_GN_DIRECT_L.mExtracting matlab\NLOPT_GN_DIRECT_L_NOSCAL.mExtracting matlab\NLOPT_GN_DIRECT_L_RAND.mExtracting matlab\NLOPT_GN_DIRECT_L_RAND_NOSCAL.mExtracting matlab\NLOPT_GN_DIRECT.mExtracting matlab\NLOPT_GN_DIRECT_NOSCAL.mExtracting matlab\NLOPT_GN_ESCH.mExtracting matlab\NLOPT_GN_ISRES.mExtracting matlab\NLOPT_GN_MLSL_LDS.mExtracting matlab\NLOPT_GN_MLSL.mExtracting matlab\NLOPT_GN_ORIG_DIRECT_L.mExtracting matlab\NLOPT_GN_ORIG_DIRECT.mExtracting matlab\NLOPT_LD_AUGLAG_EQ.mExtracting matlab\NLOPT_LD_AUGLAG.mExtracting matlab\NLOPT_LD_CCSAQ.mExtracting matlab\NLOPT_LD_LBFGS.mExtracting matlab\NLOPT_LD_LBFGS_NOCEDAL.mExtracting matlab\NLOPT_LD_MMA.mExtracting matlab\NLOPT_LD_SLSQP.mExtracting matlab\NLOPT_LD_TNEWTON.mExtracting matlab\NLOPT_LD_TNEWTON_PRECOND.mExtracting matlab\NLOPT_LD_TNEWTON_PRECOND_RESTART.mExtracting matlab\NLOPT_LD_TNEWTON_RESTART.mExtracting matlab\NLOPT_LD_VAR1.mExtracting matlab\NLOPT_LD_VAR2.mExtracting matlab\NLOPT_LN_AUGLAG_EQ.mExtracting matlab\NLOPT_LN_AUGLAG.mExtracting matlab\NLOPT_LN_BOBYQA.mExtracting matlab\NLOPT_LN_COBYLA.mExtracting matlab\NLOPT_LN_NELDERMEAD.mExtracting matlab\NLOPT_LN_NEWUOA_BOUND.mExtracting matlab\NLOPT_LN_NEWUOA.mExtracting matlab\NLOPT_LN_PRAXIS.mExtracting matlab\NLOPT_LN_SBPLX.mExtracting matlab\nlopt_minimize_constrained.mExtracting matlab\nlopt_minimize.mExtracting matlab\nlopt_optimize.cExtracting matlab\nlopt_optimize.mEverything is OkFiles: 60Size: 1602081Compressed: 495108INFO: Attempting to Create directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\srcINFO: Directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\src already created7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18Processing archive: C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\downloads\nlopt-2.4.1-dll64.zipExtracting libnlopt-0.dllExtracting libnlopt-0.defExtracting nlopt.fExtracting nlopt.hExtracting nlopt.hppExtracting nlopt.pyExtracting nlopt-python.cppExtracting setup.pyExtracting READMEExtracting COPYINGExtracting COPYRIGHTExtracting NEWSExtracting README-WINDOWSExtracting matlab\NLOPT_AUGLAG_EQ.mExtracting matlab\NLOPT_AUGLAG.mExtracting matlab\NLOPT_GD_MLSL_LDS.mExtracting matlab\NLOPT_GD_MLSL.mExtracting matlab\NLOPT_GD_STOGO.mExtracting matlab\NLOPT_GD_STOGO_RAND.mExtracting matlab\NLOPT_G_MLSL_LDS.mExtracting matlab\NLOPT_G_MLSL.mExtracting matlab\NLOPT_GN_CRS2_LM.mExtracting matlab\NLOPT_GN_DIRECT_L.mExtracting matlab\NLOPT_GN_DIRECT_L_NOSCAL.mExtracting matlab\NLOPT_GN_DIRECT_L_RAND.mExtracting matlab\NLOPT_GN_DIRECT_L_RAND_NOSCAL.mExtracting matlab\NLOPT_GN_DIRECT.mExtracting matlab\NLOPT_GN_DIRECT_NOSCAL.mExtracting matlab\NLOPT_GN_ESCH.mExtracting matlab\NLOPT_GN_ISRES.mExtracting matlab\NLOPT_GN_MLSL_LDS.mExtracting matlab\NLOPT_GN_MLSL.mExtracting matlab\NLOPT_GN_ORIG_DIRECT_L.mExtracting matlab\NLOPT_GN_ORIG_DIRECT.mExtracting matlab\NLOPT_LD_AUGLAG_EQ.mExtracting matlab\NLOPT_LD_AUGLAG.mExtracting matlab\NLOPT_LD_CCSAQ.mExtracting matlab\NLOPT_LD_LBFGS.mExtracting matlab\NLOPT_LD_LBFGS_NOCEDAL.mExtracting matlab\NLOPT_LD_MMA.mExtracting matlab\NLOPT_LD_SLSQP.mExtracting matlab\NLOPT_LD_TNEWTON.mExtracting matlab\NLOPT_LD_TNEWTON_PRECOND.mExtracting matlab\NLOPT_LD_TNEWTON_PRECOND_RESTART.mExtracting matlab\NLOPT_LD_TNEWTON_RESTART.mExtracting matlab\NLOPT_LD_VAR1.mExtracting matlab\NLOPT_LD_VAR2.mExtracting matlab\NLOPT_LN_AUGLAG_EQ.mExtracting matlab\NLOPT_LN_AUGLAG.mExtracting matlab\NLOPT_LN_BOBYQA.mExtracting matlab\NLOPT_LN_COBYLA.mExtracting matlab\NLOPT_LN_NELDERMEAD.mExtracting matlab\NLOPT_LN_NEWUOA_BOUND.mExtracting matlab\NLOPT_LN_NEWUOA.mExtracting matlab\NLOPT_LN_PRAXIS.mExtracting matlab\NLOPT_LN_SBPLX.mExtracting matlab\nlopt_minimize_constrained.mExtracting matlab\nlopt_minimize.mExtracting matlab\nlopt_optimize.cExtracting matlab\nlopt_optimize.mEverything is OkFiles: 60Size: 1932764Compressed: 541555INFO: Attempting to Create directory C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\usr\libINFO: Changing Directory to C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\src\w32Copy-Item : A positional parameter cannot be found that accepts argument 'Ane.julia\v0.4\NLopt\deps\usr\lib\libnlopt32.dll'.At line:1 char:3+ cp <<<< libnlopt-0.dll C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\usr\lib\libnlopt32.dll + CategoryInfo : InvalidArgument: (:) [Copy-Item], ParameterBindi ngException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell .Commands.CopyItemCommand================================[ ERROR: NLopt ]================================LoadError: failed process: Process(
powershell -Command 'cp libnlopt-0.dll C:\Users\Cecile Ane\.julia\v0.4\NLopt\deps\usr\lib\libnlopt32.dll'
, ProcessExited(1)) [1]while loading C:\Users\Cecile Ane.julia\v0.4\NLopt\deps\build.jl, in expression starting on line 54================================================================================================================[ BUILD ERRORS ]================================WARNING: NLopt had build errors. - packages with build errors remain installed in C:\Users\Cecile Ane.julia\v0.4 - build the package(s) and all dependencies withPkg.build("NLopt")
- build a single package by running itsdeps/build.jl
script================================================================================INFO: Package database updated— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/JuliaOpt/NLopt.jl/issues/53
yeap, that was it. Thanks!
Let's leave this open because it's a bug in the build script
Line 54 of build.jl
is just @BinDeps.install Dict(:libnlopt => :libnlopt)
, so possibly the problem is in BinDeps?
The error is higher up, looks like it's related to https://github.com/JuliaOpt/NLopt.jl/commit/9cfb390de728092a2b751c23dd680aba6b0e60c4, CC @tkelman
2 options. Either add a few escaped quotes around the destination in that cp command, or repackage the binaries so they're contained in a subdirectory inside the zip file so we could revisit https://github.com/JuliaOpt/NLopt.jl/pull/49
Seems better to just call Julia's cp
directly than do powershell -Command "cp ..."
; should be fixed now, I hope.
Oh, fudge, I screwed it up. I hate bindeps syntax.
Okay, looks like it is working now.
When trying to install NLopt on Windows (64 bits Windows 7 Pro), I get this error below. I got basically the same error when trying
Pkg.build("NLopt")
.