build Cxx又出错了

(v1.4) pkg> build Cxx
   Building Cxx → `~/.julia/packages/Cxx/1RaOv/deps/build.log`
┌ Error: Error building `Cxx`: 
│ ERROR: LoadError: could not load library "libLLVM-8.0.1"
│ libLLVM-8.0.1.so: 无法打开共享对象文件: 没有那个文件或目录
│ Stacktrace:
│  [1] dlopen(::String, ::UInt32; throw_error::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109
│  [2] dlopen at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109 [inlined] (repeats 2 times)
│  [3] dlpath(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:232
│  [4] top-level scope at /home/steiner/.julia/packages/Cxx/1RaOv/deps/build.jl:23
│  [5] include(::String) at ./client.jl:439
│  [6] top-level scope at none:5
│ in expression starting at /home/steiner/.julia/packages/Cxx/1RaOv/deps/build.jl:23
│ writing path.jl file
│ Tuning for julia installation at /home/steiner/julia-1.4.1/bin with sources possibly at /home/steiner/
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892

这个`libLLVM-8.0.1是什么东西啊,apt装了libllvm8`也没什么用啊

看着像一个库,搜搜有没有 libllvm8-tools/Devs之类的

我看了看,只有libllvm-8-ocaml-devlibllvm8两个,装了也没用

Julia是如何安装的?如果是直接从官网下载,libLLVM-8.0.1在julia-1.x.x/lib/julia/目录下的,一般不会有这种问题,除非是库的路径没有识别对。 如果你是通过apt的repo进行安装的可能会有库的依赖问题…

可能可以检查下环境变量和LLVM库的版本…还有Cxx build.jl里的一些设置…

京ICP备17009874号-2