3

在 Ubuntu v.16.04 上使用 conda 安装最新的 Julia (v.1.0) 包后,通过

conda install -c conda-forge julia

我似乎无法安装 IJulia。因此,

(v1.0) pkg> add IJulia
      Updating registry at `~/.julia/registries/General`
      Updating git-repo `https://github.com/JuliaRegistries/General.git`
     Resolving package versions...
     Installed VersionParsing ── v1.1.3
     Installed Conda ─────────── v1.0.2
     Installed JSON ──────────── v0.19.0
     Installed Compat ────────── v1.2.0
     Installed ZMQ ───────────── v1.0.0
     Installed IJulia ────────── v1.12.0
     Installed BinaryProvider ── v0.5.1
     Installed MbedTLS ───────── v0.6.3
     Installed SoftGlobalScope ─ v1.0.7
      Updating `~/.julia/environments/v1.0/Project.toml`
      [7073ff75] + IJulia v1.12.0
      Updating `~/.julia/environments/v1.0/Manifest.toml`
      [b99e7846] + BinaryProvider v0.5.1
      [34da2185] + Compat v1.2.0
      [8f4d0f93] + Conda v1.0.2
      [7073ff75] + IJulia v1.12.0
      [682c06a0] + JSON v0.19.0
      [739be429] + MbedTLS v0.6.3
      [b85f4697] + SoftGlobalScope v1.0.7
      [81def892] + VersionParsing v1.1.3
      [c2297ded] + ZMQ v1.0.0
      [2a0f44e3] + Base64 
      [ade2ca70] + Dates 
      [8bb1440f] + DelimitedFiles 
      [8ba89e20] + Distributed 
      [7b1f6079] + FileWatching 
      [b77e0a4c] + InteractiveUtils 
      [76f85450] + LibGit2 
      [8f399da3] + Libdl 
      [37e2e46d] + LinearAlgebra 
      [56ddb016] + Logging 
      [d6f4376e] + Markdown 
      [a63ad114] + Mmap 
      [44cfe95a] + Pkg 
      [de0858da] + Printf 
      [3fa0cd96] + REPL 
      [9a3f8284] + Random 
      [ea8e919c] + SHA 
      [9e88b42a] + Serialization 
      [1a1011a3] + SharedArrays 
      [6462fe0b] + Sockets 
      [2f01184e] + SparseArrays 
      [10745b16] + Statistics 
      [8dfed614] + Test 
      [cf7118a7] + UUIDs 
      [4ec0a83e] + Unicode 

在构建时,我收到以下错误:

  Building Conda ──→ `~/.julia/packages/Conda/hsaaN/deps/build.log`
  Building ZMQ ────→ `~/.julia/packages/ZMQ/ABGOx/deps/build.log`
┌ Error: Error building `ZMQ`: 
│ ERROR: LoadError: LoadError: Unable to open libLLVM!
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] (::getfield(BinaryProvider, Symbol("#open_libllvm#114")))() at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/PlatformNames.jl:649
│  [3] detect_cxx11_string_abi() at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/PlatformNames.jl:652
│  [4] detect_compiler_abi() at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/PlatformNames.jl:665
│  [5] top-level scope at none:0
│  [6] include at ./boot.jl:317 [inlined]
│  [7] include_relative(::Module, ::String) at ./loading.jl:1038
│  [8] include at ./sysimg.jl:29 [inlined]
│  [9] include(::String) at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/BinaryProvider.jl:1
│  [10] top-level scope at none:0
│  [11] include at ./boot.jl:317 [inlined]
│  [12] include_relative(::Module, ::String) at ./loading.jl:1038
│  [13] include(::Module, ::String) at ./sysimg.jl:29
│  [14] top-level scope at none:2
│  [15] eval at ./boot.jl:319 [inlined]
│  [16] eval(::Expr) at ./client.jl:389
│  [17] top-level scope at ./none:3
│ in expression starting at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/PlatformNames.jl:682
│ in expression starting at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/BinaryProvider.jl:12
│ ERROR: LoadError: Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232] to /home/daniel/.julia/compiled/v1.0/BinaryProvider/ek6VZ.ji.

其次是

Building MbedTLS → `~/.julia/packages/MbedTLS/mkHpa/deps/build.log`
┌ Error: Error building `MbedTLS`: 
│ ERROR: LoadError: LoadError: Unable to open libLLVM!
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] (::getfield(BinaryProvider, Symbol("#open_libllvm#114")))() at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/PlatformNames.jl:649
│  [3] detect_cxx11_string_abi() at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/PlatformNames.jl:652
│  [4] detect_compiler_abi() at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/PlatformNames.jl:665
│  [5] top-level scope at none:0
│  [6] include at ./boot.jl:317 [inlined]
│  [7] include_relative(::Module, ::String) at ./loading.jl:1038
│  [8] include at ./sysimg.jl:29 [inlined]
│  [9] include(::String) at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/BinaryProvider.jl:1
│  [10] top-level scope at none:0
│  [11] include at ./boot.jl:317 [inlined]
│  [12] include_relative(::Module, ::String) at ./loading.jl:1038
│  [13] include(::Module, ::String) at ./sysimg.jl:29
│  [14] top-level scope at none:2
│  [15] eval at ./boot.jl:319 [inlined]
│  [16] eval(::Expr) at ./client.jl:389
│  [17] top-level scope at ./none:3
│ in expression starting at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/PlatformNames.jl:682
│ in expression starting at /home/daniel/.julia/packages/BinaryProvider/cVlaj/src/BinaryProvider.jl:12
│ ERROR: LoadError: Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232] to /home/daniel/.julia/compiled/v1.0/BinaryProvider/ek6VZ.ji.
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] macro expansion at ./logging.jl:313 [inlined]
│  [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
│  [4] _require(::Base.PkgId) at ./logging.jl:311
│  [5] require(::Base.PkgId) at ./loading.jl:852
│  [6] macro expansion at ./logging.jl:311 [inlined]
│  [7] require(::Module, ::Symbol) at ./loading.jl:834
│  [8] include at ./boot.jl:317 [inlined]
│  [9] include_relative(::Module, ::String) at ./loading.jl:1038
│  [10] include(::Module, ::String) at ./sysimg.jl:29
│  [11] include(::String) at ./client.jl:388
│  [12] top-level scope at none:0
│ in expression starting at /home/daniel/.julia/packages/MbedTLS/mkHpa/deps/build.jl:1
└ @ Pkg.Operations /home/conda/feedstock_root/build_artifacts/julia_1534540929950/work/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068
  Building IJulia ─→ `~/.julia/packages/IJulia/4VL8h/deps/build.log`

尝试分别构建 ZMQ 或 BinaryProvider 会产生相同的错误:它无法打开 libLLVM

在使用旧版本的 Julia 时,我没有遇到过这个问题,也没有在之前的任何线程中解决这个问题。有任何想法吗?

4

1 回答 1

2

关于 libLLVM,请查看此链接libLLVM

我的建议是:尝试删除这些软件包,重新添加它们,进行更新,然后解决。

我目前正在将我的代码从 Julia v0.6 转换为 v0.7,这是过去几天我不得不做的太多事情。

查看这些文件中发生错误的特定位置也可能是值得的。我有一个类似的包问题,我进入该文件并看到它正在测试我的操作系统版本,并且我使用的是不受支持的 MacOs 版本(虽然不太可能是你的问题,但可能是类似的东西)。

请让我知道在我推荐的步骤之后会发生什么。祝你好运!

于 2018-10-10T16:43:14.787 回答