julia JuMP与v0.7

时间:2018-02-12 04:20:34

标签: julia julia-jump

我在编译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?

1 个答案:

答案 0 :(得分:2)

如果查看原始错误消息,您可能会看到StaticArrays(JuMP的间接依赖关系之一)未加载到0.7。无论如何,Julia 0.7处于pre-alpha状态;到目前为止还没有标记的 pre 版本。它有很多很酷的功能,但是如果您能够轻松修复损坏的软件包和弃用警告,我建议您仅在此时使用它。