I did install Julia Language on my laptop. Inside Julia language I Try to install the package “Plots”. But it failed on compile with an error in curl’s library:
LoadError: InitError: could not load library "libcurl.so.4"
Looking in /usr/lib the library is there.
lufla@petara ~> ls /usr/lib/libcurl*
lrwxrwxrwx - root 10 abr 13:07 /usr/lib/libcurl.so -> libcurl.so.4.8.0
lrwxrwxrwx - root 10 abr 13:07 /usr/lib/libcurl.so.4 -> libcurl.so.4.8.0
.rwxr-xr-x 893k root 10 abr 13:07 /usr/lib/libcurl.so.4.8.0
And the path to library is correct.
I don’t know what is happenning. But some others packages works fine. (But I don’t know if they uses the curl library).
Does anyone know the solution?
(Tip: the same problems dont occurs in debian linux)
I assume that you have installed the julia package from the extra-repo. If so, this package is compiled against system libraries and is therefore unsupported by upstream. While it may be suitable for basic usage, it is incompatible with external packages (or their dependents) which rely on Julia’s bundled versions of its dependencies.
Maybe, try to remove julia:
sudo pacman -Rs julia
and install the julia-bin package from the AUR:
paru -S julia-bin
julia-bin is the official binary release from julialang.org and should work w/o issues.
I removed the julia. I did try reinstall the oficial version from AUR. The installation was OK. But, again, when I try to install Plots package, failed the compilation:
``
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use status --outdated -m
Precompiling project…
✗ GR
✗ Plots
✗ Plots → UnitfulExt
144 dependencies successfully precompiled in 33 seconds. 35 already precompiled.
3 dependencies errored.
For a report of the errors see julia> err. To retry use pkg> precompile
julia>
With the err command:
``
julia> err
PkgPrecompileError: The following 3 direct dependencies failed to precompile:
Plots
Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to "/home/lufla/.julia/compiled/v1.11/Plots/jl_1zOkxz".
ERROR: LoadError: InitError: could not load library "libcurl.so.4"
/home/lufla/.julia/artifacts/8be4b2d49ed77db4f9607e5f8a7b09cc105be2ee/lib/libssl.so: version `OPENSSL_3.2.0' not found (required by /opt/gnu/lib/libcurl.so.4)
Stacktrace:
[1] dlopen (repeats 2 times)
@ ./libdl.jl:119 [inlined]
[2] __init__()
@ LibCURL_jll /usr/share/julia/stdlib/v1.11/LibCURL_jll/src/LibCURL_jll.jl:29
[3] include(x::String)
@ GR.GRPreferences ~/.julia/packages/GR/A0sha/src/preferences.jl:1
[4] top-level scope
@ ~/.julia/packages/GR/A0sha/src/preferences.jl:18
[5] include(x::String)
@ GR ~/.julia/packages/GR/A0sha/src/GR.jl:20
[6] top-level scope
@ ~/.julia/packages/GR/A0sha/src/GR.jl:289
[7] top-level scope
@ stdin:6
during initialization of module LibCURL_jll
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/downloader.jl:1
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/preferences.jl:1
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/GR.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile GR [28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71] to "/home/lufla/.julia/compiled/v1.11/GR/jl_ZHrkwU".
Stacktrace:
[1] (::Base.var"#1110#1111"{Base.PkgId})()
@ Base ./loading.jl:2579
[2] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile /usr/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
[3] top-level scope
@ ~/.julia/packages/Plots/MR7sb/src/backends.jl:381
in expression starting at /home/lufla/.julia/packages/Plots/MR7sb/src/init.jl:108
in expression starting at /home/lufla/.julia/packages/Plots/MR7sb/src/Plots.jl:1
in expression starting at stdin:6
UnitfulExt
Failed to precompile UnitfulExt [0e51ec96-f580-5f12-a625-1297083d7970] to "/home/lufla/.julia/compiled/v1.11/UnitfulExt/jl_uq3MK8".
ERROR: LoadError: InitError: could not load library "libcurl.so.4"
/home/lufla/.julia/artifacts/8be4b2d49ed77db4f9607e5f8a7b09cc105be2ee/lib/libssl.so: version `OPENSSL_3.2.0' not found (required by /opt/gnu/lib/libcurl.so.4)
Stacktrace:
[1] dlopen (repeats 2 times)
@ ./libdl.jl:119 [inlined]
[2] __init__()
@ LibCURL_jll /usr/share/julia/stdlib/v1.11/LibCURL_jll/src/LibCURL_jll.jl:29
[3] include(x::String)
@ GR.GRPreferences ~/.julia/packages/GR/A0sha/src/preferences.jl:1
[4] top-level scope
@ ~/.julia/packages/GR/A0sha/src/preferences.jl:18
[5] include(x::String)
@ GR ~/.julia/packages/GR/A0sha/src/GR.jl:20
[6] top-level scope
@ ~/.julia/packages/GR/A0sha/src/GR.jl:289
[7] top-level scope
@ stdin:6
during initialization of module LibCURL_jll
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/downloader.jl:1
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/preferences.jl:1
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/GR.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile GR [28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71] to "/home/lufla/.julia/compiled/v1.11/GR/jl_HjRKZl".
Stacktrace:
[1] (::Base.var"#1110#1111"{Base.PkgId})()
@ Base ./loading.jl:2579
[2] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile /usr/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
[3] top-level scope
@ ~/.julia/packages/Plots/MR7sb/src/backends.jl:381
in expression starting at /home/lufla/.julia/packages/Plots/MR7sb/src/init.jl:108
in expression starting at /home/lufla/.julia/packages/Plots/MR7sb/src/Plots.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to "/home/lufla/.julia/compiled/v1.11/Plots/jl_jtOPqN".
Stacktrace:
[1] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile /usr/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
[2] top-level scope
@ stdin:6
in expression starting at /home/lufla/.julia/packages/Plots/MR7sb/ext/UnitfulExt.jl:4
in expression starting at stdin:6
GR
Failed to precompile GR [28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71] to "/home/lufla/.julia/compiled/v1.11/GR/jl_Visk2U".
ERROR: LoadError: InitError: could not load library "libcurl.so.4"
/home/lufla/.julia/artifacts/8be4b2d49ed77db4f9607e5f8a7b09cc105be2ee/lib/libssl.so: version `OPENSSL_3.2.0' not found (required by /opt/gnu/lib/libcurl.so.4)
Stacktrace:
[1] dlopen (repeats 2 times)
@ ./libdl.jl:119 [inlined]
[2] __init__()
@ LibCURL_jll /usr/share/julia/stdlib/v1.11/LibCURL_jll/src/LibCURL_jll.jl:29
[3] include(x::String)
@ GR.GRPreferences ~/.julia/packages/GR/A0sha/src/preferences.jl:1
[4] top-level scope
@ ~/.julia/packages/GR/A0sha/src/preferences.jl:18
[5] include(x::String)
@ GR ~/.julia/packages/GR/A0sha/src/GR.jl:20
[6] top-level scope
@ ~/.julia/packages/GR/A0sha/src/GR.jl:289
[7] top-level scope
@ stdin:6
during initialization of module LibCURL_jll
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/downloader.jl:1
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/preferences.jl:1
in expression starting at /home/lufla/.julia/packages/GR/A0sha/src/GR.jl:1
in expression starting at stdin:6