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

Is LD_LIBRARY_PATH the only way? #268

Closed
lbilli opened this issue Sep 14, 2018 · 3 comments
Closed

Is LD_LIBRARY_PATH the only way? #268

lbilli opened this issue Sep 14, 2018 · 3 comments

Comments

@lbilli
Copy link
Contributor

lbilli commented Sep 14, 2018

I can use RCall only if I start julia like this:

LD_LIBRARY_PATH=/usr/lib64/R/lib julia

otherwise the linker can't find libRblas.so, as it has already been discussed.
I was wondering if that's still the only way. I've tried adding:

 ENV["LD_LIBRARY_PATH"] = "/usr/lib64/R/lib"

in startup.jl but that doesn't work.

@randy3k
Copy link
Member

randy3k commented Sep 14, 2018

The environment variable has to be set before Julia is loaded.

You could patchelf libR.so (if you know what it means). Otherwise, there are no other fixes.

@lbilli
Copy link
Contributor Author

lbilli commented Sep 14, 2018

Got it. Thanks!

@lbilli
Copy link
Contributor Author

lbilli commented Mar 18, 2022

As of Julia 1.7.2 it looks like specifying LD_LIBRARY_PATH is not required anymore.

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