Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: LoadError: InitError: could not load library "libproj.so" libcurl.so: version `CURL_4' not found #352

Closed
thomarse-ef opened this issue Mar 14, 2022 · 5 comments

Comments

@thomarse-ef
Copy link

Trying to run Circuitscape after update:

julia> using Pkg
julia> Pkg.add("Circuitscape"))
julia> Pkg.test("Circuitscape")

Getting an error:

Precompiling project...
  ✗ libgeotiff_jll
  ✗ GDAL_jll
  ✗ GDAL
  ✗ ArchGDAL
  0 dependencies successfully precompiled in 5 seconds (71 already precompiled)
  4 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
     Testing Running tests...
ERROR: LoadError: InitError: could not load library "/home/thomas/.julia/artifacts/988c12a104f039161fb0940859dee220db5b7290/lib/libproj.so"
/usr/bin/../lib/julia/libcurl.so: version `CURL_4' not found (required by /home/thomas/.julia/artifacts/988c12a104f039161fb0940859dee220db5b7290/lib/libproj.so)
Stacktrace:
 [1] macro expansion
   @ ~/.julia/packages/JLLWrappers/QpMQW/src/products/library_generators.jl:54 [inlined]
 [2] __init__()
   @ PROJ_jll ~/.julia/packages/PROJ_jll/8VPzD/src/wrappers/x86_64-linux-gnu-cxx11.jl:60
 [3] top-level scope
   @ ~/.julia/packages/JLLWrappers/QpMQW/src/toplevel_generators.jl:188
 [4] top-level scope (repeats 2 times)
   @ none:1
during initialization of module PROJ_jll
in expression starting at /home/thomas/.julia/packages/GDAL_jll/eRCh6/src/wrappers/x86_64-linux-gnu-cxx11.jl:5
in expression starting at /home/thomas/.julia/packages/GDAL_jll/eRCh6/src/GDAL_jll.jl:2
ERROR: LoadError: Failed to precompile GDAL_jll [a7073274-a066-55f0-b90d-d619367d196c] to /home/thomas/.julia/compiled/v1.7/GDAL_jll/jl_mLks1z.
Stacktrace:
 [1] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/thomas/.julia/packages/GDAL/L577l/src/GDAL.jl:1
ERROR: LoadError: Failed to precompile GDAL [add2ef01-049f-52c4-9ee2-e494f65e021a] to /home/thomas/.julia/compiled/v1.7/GDAL/jl_d8QfL9.
Stacktrace:
 [1] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/thomas/.julia/packages/ArchGDAL/kmLdS/src/ArchGDAL.jl:1
ERROR: LoadError: Failed to precompile ArchGDAL [c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3] to /home/thomas/.julia/compiled/v1.7/ArchGDAL/jl_odbcr7.
Stacktrace:
 [1] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/thomas/.julia/packages/Circuitscape/yLUwS/src/Circuitscape.jl:2
ERROR: LoadError: Failed to precompile Circuitscape [2b7a1792-8151-5239-925d-e2b8fdfa3201] to /home/thomas/.julia/compiled/v1.7/Circuitscape/jl_xIMCfH.
Stacktrace:
 [1] include(fname::String)
   @ Base.MainInclude ./client.jl:451
 [2] top-level scope
   @ none:6
in expression starting at /home/thomas/.julia/packages/Circuitscape/yLUwS/test/runtests.jl:1
ERROR: Package Circuitscape errored during testing
Stacktrace:
 [1] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
   @ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1672
 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
   @ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:421
 [3] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:149
 [4] test(pkgs::Vector{Pkg.Types.PackageSpec})
   @ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:144
 [5] #test#87
   @ /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:142 [inlined]
 [6] test
   @ /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:142 [inlined]
 [7] #test#86
   @ /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:141 [inlined]
 [8] test(pkg::String)
   @ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:141
 [9] top-level scope
   @ REPL[4]:1

No idea how to fix this... might be something to do with PROJ_jll, which was built with BinaryBuilder: https://github.com/JuliaBinaryWrappers/PROJ_jll.jl (?)

@koalp
Copy link

koalp commented Mar 31, 2022

I have the same issue on archlinux (works on debian). I think it has to do with the version of libcurl which is installed or the way it is compiled.
(as a workaround I have to use julia in a container)

@tcztzy
Copy link

tcztzy commented May 8, 2022

I had the same problem when I add NighttimeLights, and I reported to JuliaBinaryWrappers.

@koalp
Copy link

koalp commented May 8, 2022

Using a package with binaries provided by julia "solved" the issue for me, as mentioned in the archwiki : https://wiki.archlinux.org/title/Julia

@tcztzy
Copy link

tcztzy commented May 8, 2022

Using a package with binaries provided by julia "solved" the issue for me, as mentioned in the archwiki : https://wiki.archlinux.org/title/Julia

Thank you, I forgot to look up the archwiki. It should be look firstly. I use docker + remote container in vscode right now.

@thomarse-ef
Copy link
Author

Using a package with binaries provided by julia "solved" the issue for me, as mentioned in the archwiki : https://wiki.archlinux.org/title/Julia

THANK YOU - this fixed it for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants