首页 > 解决方案 > 错误构建“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

标签: juliajulia-jumpclp

解决方案


对于上述系统,在 Julia 中安装和构建 Clp 包之前,您需要确保将 GNU 编译器集合 (gcc) 加载到系统中。


推荐阅读