-
Notifications
You must be signed in to change notification settings - Fork 35
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
julia_setup() crashes R because of a strange dynamic library path #99
Comments
Thank you for the feedback! By the way, what is the version of |
Yes, there is Julia in The version of JuliaCall is When I pass "/usr/bin/" to
|
I downloaded Julia 1.1.0 and unpacked it in my home directory, and now when I pass the location of the julia 1.1.0 binary to It seems that there may be a problem with the way julia is packaged in Debian. |
Thanks! |
The error is still present. The problem is not the location of the binary, but that of the I track the error to the C++ function |
@Emmanuel-R8 Thanks for the feedback and the tracking down. After investigating, I believe there are actually some issues in julia itself or the way that julia is compiling on the system.
in julia and see if the results make sense? And you could also try |
Here it is (on Julia 1.3.1 - all packages up to date).
But this is OK.
And this is good too:
On R,
It breaks even I run |
I am having this issue too on Ubuntu with simply embedding Julia into a C program following Julia's example. It has nothing to do with R therefore. |
Update: If you use jl_init_with_image__threading("/usr/lib/x86_64-linux-gnu/julia/", "sys.so"); in place of jl_init |
Hello, I met the same error on Ubuntu 20.04 today. The version number of Julia is 1.4.1 installed from Ubuntu repository. I have remove Julia package and installed 1.4.2 downloaded from the official Julia web page. Thank you, |
This is a bug in Julia itself, see JuliaLang/julia#32614 (comment) and JuliaLang/julia#32614 (comment). Until the issue is fixed in Julia, it might be wise for |
…nstalls) Julia's embedding fails in jl_init if Julia is built and installed with MULTIARCH_INSTALL=1, which it is in Debian and Ubuntu. It fails with: > julia_setup() Julia version 1.5.2 at location /usr/bin will be used. ERROR: could not load library "/usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so" /usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so: cannot open shared object file: No such file or directory The problem is described at JuliaLang/julia#32614 (comment). As a workaround, let's allow overriding the bindir by setting JULIA_BINDIR environment variable (`/usr/bin` to fix this on Debian). Fixes: JuliaInterop#99
…nstalls) Julia's embedding fails in jl_init if Julia is built and installed with MULTIARCH_INSTALL=1, which it is in Debian and Ubuntu. It fails with: > julia_setup() Julia version 1.5.2 at location /usr/bin will be used. ERROR: could not load library "/usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so" /usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so: cannot open shared object file: No such file or directory The problem is described at JuliaLang/julia#32614 (comment). As a workaround, let's allow overriding the bindir by setting JULIA_BINDIR environment variable (`/usr/bin` to fix this on Debian). Fixes: JuliaInterop#99
My wife needed this sooner rather than later, so the PR is here: #143 |
…nstalls) Julia's embedding fails in jl_init if Julia is built and installed with MULTIARCH_INSTALL=1, which it is in Debian and Ubuntu. It fails with: > julia_setup() Julia version 1.5.2 at location /usr/bin will be used. ERROR: could not load library "/usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so" /usr/lib/x86_64-linux-gnu/../bin/../lib/x86_64-linux-gnu/julia/sys.so: cannot open shared object file: No such file or directory The problem is described at JuliaLang/julia#32614 (comment). As a workaround, let's allow overriding the bindir by setting JULIA_BINDIR environment variable (`/usr/bin` to fix this on Debian). Fixes: JuliaInterop#99
Workaround for #99 (could not load library on multiarch installs)
On Debian Linux (buster/sid combination),
julia_setup()
crashes the R session:For some reason, it is looking for a library in a really bizarre location. I can use Julia from the command line and from a Jupyter notebook, but not from R. I get the same error from terminal R session, nvim-R, and r-studio.
Session Info
The text was updated successfully, but these errors were encountered: