julia - 错误构建“Clp”无法在 Julia 中生成 deps.jl?
问题描述
我正在尝试在 julia 的系统上安装和构建 Clp,但收到错误消息:
Error: Error building `Clp`:
│ ERROR: LoadError: LibraryProduct(nothing, ["libClp"], :libClp, "Prefix(/global/home/users/gorman_will/.julia/packages/Clp/cX6R7/deps/usr)") is not satisfied, cannot generate deps.jl!
│ Stacktrace:
│ [1] error(::String) at ./error.jl:33
│ [2] #write_deps_file#165(::Bool, ::Bool, ::Function, ::String, ::Array{LibraryProduct,1}) at /global/home/users/gorman_will/.julia/packages/BinaryProvider/GeAtj/src/Products.jl:419
│ [3] (::getfield(BinaryProvider, Symbol("#kw##write_deps_file")))(::NamedTuple{(:verbose,),Tuple{Bool}}, ::typeof(write_deps_file), ::String, ::Array{LibraryProduct,1}) at ./none:0
│ [4] top-level scope at none:0
│ [5] include at ./boot.jl:317 [inlined]
│ [6] include_relative(::Module, ::String) at ./loading.jl:1044
│ [7] include(::Module, ::String) at ./sysimg.jl:29
│ [8] include(::String) at ./client.jl:392
│ [9] top-level scope at none:0
│ in expression starting at /global/home/users/gorman_will/.julia/packages/Clp/cX6R7/deps/build.jl:144
└ @ Pkg.Operations /global/software/sl-7.x86_64/sources/julia-1.0.3/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1097
我认为这可能与可能需要自定义安装有关,但不确定..
朱莉娅会议信息:
julia> versioninfo()
Julia Version 1.0.3
Platform Info:
OS: Linux (x86_64-redhat-linux)
CPU: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, sandybridge)
Environment:
JULIA_DIR = /global/software/sl-7.x86_64/modules/langs/julia/1.0.3
我项目中的包版本:
julia> Pkg.status()
Status `~/.julia/environments/v1.0/Project.toml`
[e2554f3b] Clp v0.8.0
[e2685f51] ECOS v0.11.0
[4076af6c] JuMP v0.21.2
[eadc2687] Pandas v1.4.0
问题发布在 github 上:github.com/JuliaOpt/Clp.jl/issues/90
解决方案
对于上述系统,在 Julia 中安装和构建 Clp 包之前,您需要确保将 GNU 编译器集合 (gcc) 加载到系统中。
推荐阅读
- matplotlib - How to make a gif out of subplot?
- git - 当我们在 cli 中使用分支而不是提交 ID 时,AWS 代码构建错误并显示“不正确的 commid ID”
- html - 滚动时如何编辑缩放位置
- navision - navision 报告上的交替颜色,即白色和灰色交替的线条?
- java - 来自 Java 用户输入的字数和行数计数器
- r - 将可旋转输出导出为图像
- ios - Int 的默认大小可以改变吗?
- javascript - 异步函数阻止事件循环 - 调用 app.get 方法时不呈现页面
- python-3.x - 如何在 OS X Catalina 上使用 cron 调度 python 脚本
- spartacus-storefront - 刷新令牌功能