Solvedjulia Pkg.build fails with LoadError: Unable to open libLLVM!

Using Julia 0.7.0 on RHEL 7.5. Julia was installed from julia-epel-7 repo referenced in the documentation (https://copr.fedorainfracloud.org/coprs/nalimilan/julia/). Building any package fails with:

ERROR: LoadError: LoadError: Unable to open libLLVM!

llvm6-libs.x86_64-6.0.0-4.el7 package was installed from the julia repo. This rpm installs libLLVM to /usr/lib64/llvm6/lib/. For some reason the build process does not find the lib. I worked around the issue by creating a symlink in /usr/lib64:

ln -s /usr/lib64/llvm6/lib/libLLVM-6.0.0.so /usr/lib64/libLLVM.so

With this symlink in place, packages build successfully.

Julia versioninfo():

Julia Version 0.7.0
Commit a4cb80f3ed (2018-08-08 06:46 UTC)
Platform Info:
  OS: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Xeon(R) CPU E7-8880 v3 @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)

build log:

ERROR: LoadError: LoadError: Unable to open libLLVM!
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] (::getfield(BinaryProvider, Symbol("#open_libllvm#114")))() at /bbkinghome/mleary/.julia/packages/BinaryProvider/1nGWd/src/PlatformNames.jl:650
 [3] detect_cxx11_string_abi() at /bbkinghome/mleary/.julia/packages/BinaryProvider/1nGWd/src/PlatformNames.jl:653
 [4] detect_compiler_abi() at /bbkinghome/mleary/.julia/packages/BinaryProvider/1nGWd/src/PlatformNames.jl:666
 [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 /bbkinghome/mleary/.julia/packages/BinaryProvider/1nGWd/src/BinaryProvider.jl:1
 [10] top-level scope at none:0
 [11] top-level scope at none:2
in expression starting at /bbkinghome/mleary/.julia/packages/BinaryProvider/1nGWd/src/PlatformNames.jl:683
in expression starting at /bbkinghome/mleary/.julia/packages/BinaryProvider/1nGWd/src/BinaryProvider.jl:12
ERROR: LoadError: Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232] to /bbkinghome/mleary/.julia/compiled/v0.7/BinaryProvider/ek6VZ.ji.
Stacktrace:
 [1] include(::String) at ./client.jl:398
 [2] top-level scope at none:0
in expression starting at /bbkinghome/mleary/.julia/packages/Rmath/Py9gH/deps/build.jl:1

julia-epel-7.repo

[julia-epel-7]
name=Copr repo for julia owned by nalimilan
baseurl=https://copr-be.cloud.fedoraproject.org/results/nalimilan/julia/epel-7-$basearch/
enabled=True
gpgcheck=True
gpgkey=https://copr-be.cloud.fedoraproject.org/results/nalimilan/julia/pubkey.gpg
skip_if_unavailable=True
27 Answers

✔️Accepted Answer

I'm having the same issue on macOS Mojave, 10.14 with an anaconda setup and Julia v1.0.1

I create a new environment, install julia via conda install -c conda-forge julia

In order to access Julia via jupyter notebooks I do the following:

using Pkg Pkg.add("IJulia")

All goes fab,but then then opening jupyter notebook and selecting Julia yields the following:

Blosc not installed properly, run Pkg.build("ZMQ"), restart Julia and try again

Hoping for a successful resolution of the above, I run:

using Pkg Pkg.build("ZMQ")

Which slaps me back with the error that we are all experiencing here:

Error: Error buildingZMQ: │ ERROR: LoadError: LoadError: Unable to open libLLVM!

Is there anything wrong with the process I'm following? It's the first time I'm trying to get Julia to work with Jupyter Notebook.

Julia info

Julia Version 1.0.1 Platform Info: OS: macOS (x86_64-apple-darwin16.7.0) CPU: Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

I also have such problem!

Other Answers:

same issue on ubuntu 18.04 when julia is installed via anaconda.

corrected with:
ln -s /usr/lib/llvm-6.0/lib/libLLVM-6.0.0.so /usr/lib/libLLVM.so

@nalimilan Even on 1.0.1, I run into a similar problem (ERROR: LoadError: LoadError: Unable to open libLLVM!) when attempting to build ZMQ and MBedTLS, as part of the IJulia build. Could you kindly point me to the fix?

More Issues: