-
Notifications
You must be signed in to change notification settings - Fork 36
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
Unable to load libjulia.so because `GLIBCXX_3.4.20' not found #1
Comments
The issue happens because libstdc++.so.6 is too old, update libstdc++6 could solve this. Or maybe you could add the directory $JuliaDir/lib/julia to LD_LIBRARY_PATH which contains all the shared object libjulia needs, for example, |
Maybe we could add more helpful error messages in this part. |
@Non-Contradiction this seems to be the closest issue to what I experience: R aborting with:
For info:
|
Thank you very much for the feedback. |
The commit ebb3a46 has the issue and the solution in README. |
One useful command for people to check if this works: |
When running julia_setup() through opencpu I am getting the error
I have set environment varibale R_LD_LIBRARY_PATH in /etc/bashrc and in /etc/opencpu/Renviron aswell |
@s439 Thanks for the feedback. |
@Non-Contradiction The result is empty "" through opencpu session |
Then it is quite strange, it seems that the R doesn't pick up the R_LD_LIBRARY_PATH, maybe we can try |
This issue appears to still be a problem here in 9/9/2020. Sys.getenv() in R, shows that R_LD_LIBRARY_PATH does not exist. Though LD_LIBRARY_PATH does; and the latter can be set with quite a bit of difficulty using Sys.setenv(). The difficulty lies in the fact that you want to do this programmatically using the current values of LD_LIBRARY_PATH. Nevertheless when I add my local julia/lib directory to this, I get past the GLIBCXX error, but then I start running into a bunch of other missing symbols and libraries. I now get this error:
My LD_LIBRARY_PATH does contain the path to the julia libraries, namely.
|
@mattcbro Maybe we could try to add the julia library path after the library path of R? Or maybe the end of LD_LIBRARY_PATH? |
The problems is rather subtle. I get library symbol failures whenever I try to use the Plots package inside a user defined module. Somehow the environment changes so that it can't find the libraries in that situation. I will try to generate a simple example tomorrow. |
OK I opened a new issue and provided example code. |
I had the same exact issue on a cluster which load Julia via the For future reference, first I typed
Then JuliaCall works library(JuliaCall)
julia <- julia_setup(JULIA_HOME = "/share/software/user/open/julia/1.6.2/bin")
julia_exists("sqrt")
[1] TRUE |
After library(JuliaCall) and julia_setup(), I encountered this error:
Error in dyn.load(.julia$dll_file, FALSE, TRUE) :
unable to load shared object '/storage/work/cxl508/julia/julia-0.6.0/bin/../lib/libjulia.so.0.6':
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /storage/work/cxl508/julia/julia-0.6.0/bin/../lib/libjulia.so.0.6)
And this is the sessionInfo:
Matrix products: default
BLAS: /usr/lib64/R/lib/libRblas.so
LAPACK: /usr/lib64/R/lib/libRlapack.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] JuliaCall_0.7.3
loaded via a namespace (and not attached):
[1] compiler_3.4.0
The text was updated successfully, but these errors were encountered: