Can';t在Julia 1.0中构建Ijulia

Can';t在Julia 1.0中构建Ijulia,julia,conda,ijulia-notebook,Julia,Conda,Ijulia Notebook,使用conda在Ubuntu v.16.04上安装最新的Julia(v.1.0)软件包后,通过 conda install -c conda-forge julia 我似乎无法安装IJulia。 因此, 在构建时,我得到以下错误: Building Conda ──→ `~/.julia/packages/Conda/hsaaN/deps/build.log` Building ZMQ ────→ `~/.julia/packages/ZMQ/ABGOx/deps/build.log`

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

conda install -c conda-forge julia
我似乎无法安装IJulia。 因此,

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

  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时,我没有遇到过这个问题,在以前的任何线程中也没有解决这个问题的方法。有什么想法吗?

关于libLLVM,请查看此链接

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

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

还值得一看这些文件中发生错误的特定位置。我在一个软件包中遇到了类似的问题,我查看了该文件,发现它正在测试我的OS版本,而我使用的是不受支持的MacOs版本(虽然不太可能是您的问题,但可能是类似的)


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

在新安装上从conda forge安装Julia并不能解决此问题(
docker run continuMio/anaconda/bin/bash-c)/opt/conda/bin/conda install-c conda forge-yq Julia&&Julia-e'using Pkg;Pkg.add(\“ZMQ\”)
)。堆栈跟踪引用BinaryProvider 0.5.1,但0.4.0应该与Julia 1.0.0兼容。可能是conda forge软件包中的一个bug?我提出了一个GitHub问题,我认为这可能是BinaryProvider上的一个bug。JL似乎有人在StackOverflow上问了一个重复的问题:(即,你先问了这个问题,然后他们又问了一次。)除了@sargas提到的GitHub问题之外,另请参见和。
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`