julia JuMP 与 v0.7
julia JuMP with v0.7
我尝试在编译 v0.7 后构建 JuMP,但出现错误:
ERROR: LoadError: Failed to precompile ReverseDiffSparse to /Users/MYUSER/.julia/lib/v0.7/ReverseDiffSparse.ji.
Stacktrace:
[1] error at ./error.jl:33 [inlined]
[2] compilecache(::Base.PkgId) at ./loading.jl:1208
[3] _require(::Base.PkgId) at ./loading.jl:974
[4] require(::Module, ::Symbol) at ./loading.jl:874
[5] include at ./boot.jl:295 [inlined]
[6] include_relative(::Module, ::String) at ./loading.jl:1067
[7] include(::Module, ::String) at ./sysimg.jl:26
[8] top-level scope
[9] eval at ./boot.jl:298 [inlined]
[10] top-level scope at ./<missing>:3
in expression starting at /Users/MYUSER/.julia/v0.7/JuMP/src/JuMP.jl:21
ERROR: Failed to precompile JuMP to /Users/MYUSER/.julia/lib/v0.7/JuMP.ji.
Stacktrace:
[1] error at ./error.jl:33 [inlined]
[2] compilecache(::Base.PkgId) at ./loading.jl:1208
[3] _require(::Base.PkgId) at ./loading.jl:1003
[4] require(::Module, ::Symbol) at ./loading.jl:874
如何解释这些/如何为最新版本 0.7 构建 JuMP?
如果您查看原始错误消息,您可能会发现 StaticArrays(JuMP 的间接依赖项之一)无法在 0.7 上加载。无论如何,Julia 0.7 处于 pre-alpha 状态;截至今天,还没有标记 pre 版本。它有很多很酷的功能,但我建议您在此时使用它,前提是您愿意修复损坏的包和弃用警告。
我尝试在编译 v0.7 后构建 JuMP,但出现错误:
ERROR: LoadError: Failed to precompile ReverseDiffSparse to /Users/MYUSER/.julia/lib/v0.7/ReverseDiffSparse.ji.
Stacktrace:
[1] error at ./error.jl:33 [inlined]
[2] compilecache(::Base.PkgId) at ./loading.jl:1208
[3] _require(::Base.PkgId) at ./loading.jl:974
[4] require(::Module, ::Symbol) at ./loading.jl:874
[5] include at ./boot.jl:295 [inlined]
[6] include_relative(::Module, ::String) at ./loading.jl:1067
[7] include(::Module, ::String) at ./sysimg.jl:26
[8] top-level scope
[9] eval at ./boot.jl:298 [inlined]
[10] top-level scope at ./<missing>:3
in expression starting at /Users/MYUSER/.julia/v0.7/JuMP/src/JuMP.jl:21
ERROR: Failed to precompile JuMP to /Users/MYUSER/.julia/lib/v0.7/JuMP.ji.
Stacktrace:
[1] error at ./error.jl:33 [inlined]
[2] compilecache(::Base.PkgId) at ./loading.jl:1208
[3] _require(::Base.PkgId) at ./loading.jl:1003
[4] require(::Module, ::Symbol) at ./loading.jl:874
如何解释这些/如何为最新版本 0.7 构建 JuMP?
如果您查看原始错误消息,您可能会发现 StaticArrays(JuMP 的间接依赖项之一)无法在 0.7 上加载。无论如何,Julia 0.7 处于 pre-alpha 状态;截至今天,还没有标记 pre 版本。它有很多很酷的功能,但我建议您在此时使用它,前提是您愿意修复损坏的包和弃用警告。