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

FYI: Doesn't load on Julia 1.5 musl version #388

Closed
PallHaraldsson opened this issue Aug 16, 2020 · 1 comment
Closed

FYI: Doesn't load on Julia 1.5 musl version #388

PallHaraldsson opened this issue Aug 16, 2020 · 1 comment

Comments

@PallHaraldsson
Copy link
Contributor

PallHaraldsson commented Aug 16, 2020

I could use RCall previously, and when I updated to Julia 1.5 I tried to choose the musl version (and installed musl C lib in Ubuntu).

[I assume it works on Julia 1.5 non-musl version just as it does only Julia 1.6.]

I tried with or without LD_LIBRARY_PATH:

$ LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/blas/libblas.so.3 ~/julia-1.5.0/bin/julia

julia> Pkg.build("RCall")
   Building Conda → `~/.julia/packages/Conda/3rPhK/deps/build.log`
   Building RCall → `~/.julia/packages/RCall/Qzssx/deps/build.log`
┌ Error: Error building `RCall`: 
│ ERROR: could not load library "/usr/lib/R/lib/libR.so"
│ Error loading shared library libblas.so.3: No such file or directory (needed by /usr/lib/R/lib/libR.so)
│ ERROR: LoadError: Try adding /usr/lib/R/lib to the "LD_LIBRARY_PATH" environmental variable and restarting Julia.
│ Stacktrace:
│  [1] error at ./error.jl:33
│  [2] validate_libR(::String) at /home/pharaldsson_sym/.julia/packages/RCall/Qzssx/deps/setup.jl:26
│  [3] locate_libR(::SubString{String}) at /home/pharaldsson_sym/.julia/packages/RCall/Qzssx/deps/setup.jl:43
│  [4] top-level scope at /home/pharaldsson_sym/.julia/packages/RCall/Qzssx/deps/build.jl:53
│  [5] include(::String) at ./client.jl:457
│  [6] top-level scope at none:5
│ in expression starting at /home/pharaldsson_sym/.julia/packages/RCall/Qzssx/deps/build.jl:11
│ caused by [exception 1]
│ could not load library "/usr/lib/R/lib/libR.so"
│ Error loading shared library libblas.so.3: No such file or directory (needed by /usr/lib/R/lib/libR.so)
│ Stacktrace:
│  [1] #dlopen#3 at /buildworker/worker/package_musl64/build/usr/share/julia/stdlib/v1.5/Libdl/src/Libdl.jl:109
│  [2] dlopen at /buildworker/worker/package_musl64/build/usr/share/julia/stdlib/v1.5/Libdl/src/Libdl.jl:109 [inlined] (repeats 2 times)
│  [3] validate_libR(::String) at /home/pharaldsson_sym/.julia/packages/RCall/Qzssx/deps/setup.jl:16
│  [4] locate_libR(::SubString{String}) at /home/pharaldsson_sym/.julia/packages/RCall/Qzssx/deps/setup.jl:43
│  [5] top-level scope at /home/pharaldsson_sym/.julia/packages/RCall/Qzssx/deps/build.jl:53
│  [6] include(::String) at ./client.jl:457
│  [7] top-level scope at none:5
└ @ Pkg.Operations /buildworker/worker/package_musl64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:942

For some other packages for something similar to below I got errors, but I recall seeing musl in them, unlike for below (but like above):

I also get en error for below (and similar for Alpaca.jl that has RCall dependency):

julia> @time using RCall
[ Info: Precompiling RCall [6f49c342-dc21-5d91-9882-a32aef131414]
ERROR: LoadError: LoadError: InitError: could not load library "libRmath-julia.so"
Error loading shared library libRmath-julia.so: No such file or directory
Stacktrace:
 [1] __init__() at /home/pharaldsson_sym/.julia/packages/Rmath/lo1Ao/src/Rmath.jl:37
 [2] _include_from_serialized at ./loading.jl:697
 [3] _require_search_from_serialized at ./loading.jl:782
 [4] _require at ./loading.jl:1007
 [5] require at ./loading.jl:928
 [6] require at ./loading.jl:923
 [7] include at ./Base.jl:380
 [8] include at ./Base.jl:368 [inlined]
 [9] include(::String) at /home/pharaldsson_sym/.julia/packages/StatsFuns/CXyCV/src/StatsFuns.jl:3
 [10] top-level scope at /home/pharaldsson_sym/.julia/packages/StatsFuns/CXyCV/src/StatsFuns.jl:241
 [11] include at ./Base.jl:380
 [12] include at ./Base.jl:368
 [13] top-level scope at none:2
 [14] eval at ./boot.jl:331 [inlined]
 [15] eval(::Expr) at ./client.jl:467
 [16] top-level scope at ./none:3
during initialization of module Rmath
in expression starting at /home/pharaldsson_sym/.julia/packages/StatsFuns/CXyCV/src/rmath.jl:5
in expression starting at /home/pharaldsson_sym/.julia/packages/StatsFuns/CXyCV/src/StatsFuns.jl:241
ERROR: LoadError: Failed to precompile StatsFuns [4c63d2b9-4356-54db-8cca-17b64c39e42c] to /home/pharaldsson_sym/.julia/compiled/v1.5/StatsFuns/530lR_glT1O.ji.
Stacktrace:
 [1] error at ./error.jl:33

[..]
@ViralBShah
Copy link
Contributor

Please reopen if still an issue.

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

2 participants