Installing Julia lang, Pkg.add("Plots") unable to open libLLVM

Hi all!

It seems I can’t install Julia (https://julialang.org/). Unfortunately, when I try to install (or use) the Plots package (one of the most basic, didn’t try any other t.b.h.), installing fails with

Building MbedTLS → `~/.julia/packages/MbedTLS/X4xar/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#122")))() at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:652

I tried uninstalling Julia, deleting the content of ~/.julia/ and re-install Julia. This did not solve it however. BTW: The build log is empty – I add the CLI to this post. Does any one know what’s wrong here. To me, this looks like a bug … It basically happens on a completely fresh installation.

Best regards!
pbiel

Julia version is 1.0.3

Log:


~> rm -rf ~/.julia/ 
~> sudo zypper install julia 
Repository-Daten werden geladen... 
Installierte Pakete werden gelesen... 
Paketabhängigkeiten werden aufgelöst... 
 
Das folgende NEUE Paket wird installiert: 
  julia 
 
1 neues Paket zu installieren. 
Gesamtgröße des Downloads: 36,0 MiB. Bereits im Cache gespeichert: 0 B. Nach der Operation werden zusätzlich 213,1 MiB belegt. 
Fortfahren? [j/n/v/...? zeigt alle Optionen] (j): j 
Paket julia-1.0.3-lp152.3.24.x86_64 abrufen                                                            (1/1),  36,0 MiB (213,1 MiB entpackt) 
Abrufen: julia-1.0.3-lp152.3.24.x86_64.rpm .............................................................................[fertig (2,3 MiB/s)] 
 
Überprüfung auf Dateikonflikte läuft: ..............................................................................................[fertig] 
(1/1) Installieren: julia-1.0.3-lp152.3.24.x86_64 ..................................................................................[fertig] 
~> julia 
               _ 
   _       _ _(_)_     |  Documentation: https://docs.julialang.org 
  (_)     | (_) (_)    | 
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help. 
  | | | | | | |/ _` |  | 
  | | |_| | | | (_| |  |  Version 1.0.3 (2018-12-16) 
 _/ |\__'_|_|_|\__'_|  |   
|__/                   | 
 
julia> import Pkg 
 
julia> Pkg.add("Plots") 
   Cloning default registries into ~/.julia/registries 
   Cloning registry General from "https://github.com/JuliaRegistries/General.git" 
 Resolving package versions... 
 Installed NaNMath ───────────── v0.3.5 
 Installed StatsAPI ──────────── v1.0.0 
 Installed MbedTLS ───────────── v0.6.8 
 Installed FixedPointNumbers ─── v0.8.4 
 Installed OrderedCollections ── v1.4.1 
 Installed RecipesPipeline ───── v0.1.13 
 Installed Contour ───────────── v0.5.7 
 Installed Plots ─────────────── v1.4.3 
 Installed Showoff ───────────── v0.3.2 
 Installed SortingAlgorithms ─── v1.0.1 
 Installed IniFile ───────────── v0.5.0 
 Installed FFMPEG ────────────── v0.2.4 
 Installed Compat ────────────── v3.39.0 
 Installed Missings ──────────── v1.0.2 
 Installed DocStringExtensions ─ v0.8.5 
 Installed HTTP ──────────────── v0.8.19 
 Installed BinaryProvider ────── v0.5.10 
 Installed Parsers ───────────── v2.0.6 
 Installed Reexport ──────────── v0.2.0 
 Installed IrrationalConstants ─ v0.1.1 
 Installed ColorTypes ────────── v0.10.12 
 Installed LogExpFunctions ───── v0.3.3 
 Installed DataStructures ────── v0.18.10 
 Installed StaticArrays ──────── v1.2.13 
 Installed ChainRulesCore ────── v1.10.0 
 Installed Requires ──────────── v1.1.3 
 Installed JSON ──────────────── v0.21.2 
 Installed StatsBase ─────────── v0.33.12 
 Installed GeometryTypes ─────── v0.8.4 
 Installed Measures ──────────── v0.3.1 
 Installed RecipesBase ───────── v1.1.2 
 Installed DataAPI ───────────── v1.9.0 
 Installed Colors ────────────── v0.12.8 
 Installed PlotThemes ────────── v2.0.1 
 Installed Grisu ─────────────── v1.0.2 
 Installed PlotUtils ─────────── v1.0.15 
 Installed GR ────────────────── v0.50.1 
 Installed ColorSchemes ──────── v3.15.0 
  Updating `~/.julia/environments/v1.0/Project.toml` 
  [91a5bcdd] + Plots v1.4.3 
  Updating `~/.julia/environments/v1.0/Manifest.toml` 
  [b99e7846] + BinaryProvider v0.5.10 
  [d360d2e6] + ChainRulesCore v1.10.0 
  [35d6a980] + ColorSchemes v3.15.0 
  [3da002f7] + ColorTypes v0.10.12 
  [5ae59095] + Colors v0.12.8 
  [34da2185] + Compat v3.39.0 
  [d38c429a] + Contour v0.5.7 
  [9a962f9c] + DataAPI v1.9.0 
  [864edb3b] + DataStructures v0.18.10 
  [ffbed154] + DocStringExtensions v0.8.5 
  [c87230d0] + FFMPEG v0.2.4 
  [53c48c17] + FixedPointNumbers v0.8.4 
  [28b8d3ca] + GR v0.50.1 
  [4d00f742] + GeometryTypes v0.8.4 
  [42e2da0e] + Grisu v1.0.2 
  [cd3eb016] + HTTP v0.8.19 
  [83e8ac13] + IniFile v0.5.0 
  [92d709cd] + IrrationalConstants v0.1.1 
  [682c06a0] + JSON v0.21.2 
  [2ab3a3ac] + LogExpFunctions v0.3.3 
  [739be429] + MbedTLS v0.6.8 
  [442fdcdd] + Measures v0.3.1 
  [e1d29d7a] + Missings v1.0.2 
  [77ba4419] + NaNMath v0.3.5 
  [bac558e1] + OrderedCollections v1.4.1 
  [69de0a69] + Parsers v2.0.6 
  [ccf2f8ad] + PlotThemes v2.0.1 
  [995b91a9] + PlotUtils v1.0.15 
  [91a5bcdd] + Plots v1.4.3 
  [3cdcf5f2] + RecipesBase v1.1.2 
  [01d81517] + RecipesPipeline v0.1.13 
  [189a3867] + Reexport v0.2.0 
  [ae029012] + Requires v1.1.3 
  [992d4aef] + Showoff v0.3.2 
  [a2af1166] + SortingAlgorithms v1.0.1 
  [90137ffa] + StaticArrays v1.2.13 
  [82ae8749] + StatsAPI v1.0.0 
  [2913bbd2] + StatsBase v0.33.12 
  [2a0f44e3] + Base64  
  [ade2ca70] + Dates  
  [8bb1440f] + DelimitedFiles  
  [8ba89e20] + Distributed  
  [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 MbedTLS → `~/.julia/packages/MbedTLS/X4xar/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#122")))() at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:652 
│  [3] detect_cxx11_string_abi() at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:655 
│  [4] detect_compiler_abi() at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:668 
│  [5] top-level scope at none:0 
│  [6] include at ./boot.jl:317 [inlined] 
│  [7] include_relative(::Module, ::String) at ./loading.jl:1044 
│  [8] include at ./sysimg.jl:29 [inlined] 
│  [9] include(::String) at ~/.julia/packages/BinaryProvider/U2dKK/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:1044 
│  [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:393 
│  [17] top-level scope at ./none:3 
│ in expression starting at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:685 
│ in expression starting at ~/.julia/packages/BinaryProvider/U2dKK/src/BinaryProvider.jl:12 
│ ERROR: LoadError: Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232] to ~/.julia/compiled/v1.0/BinaryProvider/ek6VZ.ji. 
│ Stacktrace: 
│  [1] error(::String) at ./error.jl:33 
│  [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203 
│  [3] _require(::Base.PkgId) at ./loading.jl:960 
│  [4] require(::Base.PkgId) at ./loading.jl:858 
│  [5] require(::Module, ::Symbol) at ./loading.jl:853 
│  [6] include at ./boot.jl:317 [inlined] 
│  [7] include_relative(::Module, ::String) at ./loading.jl:1044 
│  [8] include(::Module, ::String) at ./sysimg.jl:29 
│  [9] include(::String) at ./client.jl:392 
│  [10] top-level scope at none:0 
│ in expression starting at ~/.julia/packages/MbedTLS/X4xar/deps/build.jl:1 
└ @ Pkg.Operations /home/abuild/rpmbuild/BUILD/julia-1.0.3/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1097 
  Building GR ─────→ `~/.julia/packages/GR/Atztx/deps/build.log` 
  Building FFMPEG ─→ `~/.julia/packages/FFMPEG/guN1x/deps/build.log` 
┌ Error: Error building `FFMPEG`:  
│ ERROR: LoadError: LoadError: Unable to open libLLVM! 
│ Stacktrace: 
│  [1] error(::String) at ./error.jl:33 
│  [2] (::getfield(BinaryProvider, Symbol("#open_libllvm#122")))() at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:652 
│  [3] detect_cxx11_string_abi() at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:655 
│  [4] detect_compiler_abi() at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:668 
│  [5] top-level scope at none:0 
│  [6] include at ./boot.jl:317 [inlined] 
│  [7] include_relative(::Module, ::String) at ./loading.jl:1044 
│  [8] include at ./sysimg.jl:29 [inlined] 
│  [9] include(::String) at ~/.julia/packages/BinaryProvider/U2dKK/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:1044 
│  [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:393 
│  [17] top-level scope at ./none:3 
│ in expression starting at ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:685 
│ in expression starting at ~/.julia/packages/BinaryProvider/U2dKK/src/BinaryProvider.jl:12 
│ ERROR: LoadError: Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232] to ~/.julia/compiled/v1.0/BinaryProvider/ek6VZ.ji. 
│ Stacktrace: 
│  [1] error(::String) at ./error.jl:33 
│  [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203 
│  [3] _require(::Base.PkgId) at ./loading.jl:960 
│  [4] require(::Base.PkgId) at ./loading.jl:858 
│  [5] require(::Module, ::Symbol) at ./loading.jl:853 
│  [6] include at ./boot.jl:317 [inlined] 
│  [7] include_relative(::Module, ::String) at ./loading.jl:1044 
│  [8] include(::Module, ::String) at ./sysimg.jl:29 
│  [9] include(::String) at ./client.jl:392 
│  [10] top-level scope at none:0 
│ in expression starting at ~/.julia/packages/FFMPEG/guN1x/deps/build.jl:1 
└ @ Pkg.Operations /home/abuild/rpmbuild/BUILD/julia-1.0.3/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1097 
  Building Plots ──→ `~/.julia/packages/Plots/E3MWZ/deps/build.log` 
 
julia> 

Appears you are missing
libLLVM

Hi, thanks for the reply; However, afaik I have libLLVM


S  | Name           | Summary            | Type 
---+----------------+--------------------+------ 
i+ | libLLVM7       | Libraries for LLVM | Paket 
   | libLLVM7-32bit | Libraries for LLVM | Paket 
i+ | libLLVM9       | Libraries for LLVM | Paket 
   | libLLVM9-32bit | Libraries for LLVM | Paket 

(Don’t think I’ll need the 32bit ones)

Maybe need development version for linkage??? There error says the lib could not be found! Also could be a name convention problem

https://software.opensuse.org/package/julia

1 Like