Julia 编译JuMP Cbc安装错误

Error building Cbc

julia> Pkg.build("Cbc") WARNING: Base.Pkg is deprecated, run `using Pkg` instead in module Main Building LibCURL ─→ `C:\Users\Chiebuka\.julia\packages\LibCURL\OoXMv\deps\build.log` Building WinRPM ──→ `C:\Users\Chiebuka\.julia\packages\WinRPM\Y9QdZ\deps\build.log` Building Homebrew → `C:\Users\Chiebuka\.julia\packages\Homebrew\l8kUw\deps\build.log` Building Cbc ─────→ `C:\Users\Chiebuka\.julia\packages\Cbc\s0xmI\deps\build.log` ┌ Error: Error building `Cbc`: │ │ ERROR: The system cannot find the file specified. │ C:\Users\Chiebuka\.julia\packages\WinRPM\Y9QdZ\cache\2\mingw64-libstdc%2B%2B6-8.2.0-2.1.noarch.cpio │ │ │ │ System ERROR: │ The system cannot find the file specified. │ [ Info: Updating WinRPM package list │ [ Info: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml │ [ Info: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml │ ┌ Info: Packages to install: │ └ join(names(todo), ", ") = "libstdc++6, Cbc" │ ┌ Info: Downloading: │ └ name = "libstdc++6" │ ┌ Info: Extracting: │ └ name = "libstdc++6" │ ERROR: LoadError: MethodError: no method matching pipeline_error(::Int64) │ Closest candidates are: │ pipeline_error(!Matched::Base.ProcessChain) at process.jl:718 │ pipeline_error(!Matched::Base.Process) at process.jl:711 │ Stacktrace: │ [1] macro expansion at .\logging.jl:309 [inlined] (repeats 2 times) │ [2] do_install(::WinRPM.Package) at C:\Users\Chiebuka\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:465 │ [3] do_install at C:\Users\Chiebuka\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:456 [inlined] │ [4] macro expansion at .\logging.jl:320 [inlined] │ [5] #install#19(::Bool, ::Function, ::WinRPM.Package) at C:\Users\Chiebuka\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:385 │ [6] #install at .\none:0 [inlined] │ [7] #install#17 at C:\Users\Chiebuka\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:372 [inlined] │ [8] #install at .\none:0 [inlined] (repeats 2 times) │ [9] (::getfield(WinRPM, Symbol("##34#35")){WinRPM.RPM})() at C:\Users\Chiebuka\.julia\packages\WinRPM\Y9QdZ\src\winrpm_bindeps.jl:42 │ [10] run(::getfield(WinRPM, Symbol("##34#35")){WinRPM.RPM}) at C:\Users\Chiebuka\.julia\packages\BinDeps\ZEval\src\BinDeps.jl:478 │ [11] macro expansion at .\logging.jl:308 [inlined] │ [12] run(::BinDeps.SynchronousStepCollection) at C:\Users\Chiebuka\.julia\packages\BinDeps\ZEval\src\BinDeps.jl:518 │ [13] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at C:\Users\Chiebuka\.julia\packages\BinDeps\ZEval\src\dependencies.jl:944 │ [14] satisfy!(::BinDeps.LibraryDependency) at C:\Users\Chiebuka\.julia\packages\BinDeps\ZEval\src\dependencies.jl:922 │ [15] top-level scope at C:\Users\Chiebuka\.julia\packages\BinDeps\ZEval\src\dependencies.jl:977 │ [16] include at .\boot.jl:317 [inlined] │ [17] include_relative(::Module, ::String) at .\loading.jl:1038 │ [18] include(::Module, ::String) at .\sysimg.jl:29 │ [19] include(::String) at .\client.jl:398 │ [20] top-level scope at none:0 │ in expression starting at C:\Users\Chiebuka\.julia\packages\Cbc\s0xmI\deps\build.jl:64 │ │ 7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04 │ │ Scanning the drive for archives: └ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\Pkg\src\Operations.jl:1068

I found a solution for that. The error is about finding a file in WinRPM package so when you change the file name

修改文件winrpm下文件名

"mingw64-libstdc++6-8.2.0-2.1.noarch.cpio" to
"mingw64-libstdc%2B%2B6-8.2.0-2.3.noarch.cpio" in
C:\Users<user>.julia\packages\WinRPM\Y9QdZ\cache\2

folder it builds fine.
But we still need a generic solution.

猜你喜欢

转载自blog.csdn.net/nanfei_opt/article/details/88898772