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

load RCall at Remote Julia of Atom #320

Closed
hanbinlu opened this issue Jul 15, 2019 · 1 comment
Closed

load RCall at Remote Julia of Atom #320

hanbinlu opened this issue Jul 15, 2019 · 1 comment

Comments

@hanbinlu
Copy link

Hi,

I could load the RCall in Julia REPL running inside the terminal which has export LD_LIBRARY_PATH="/home/software/R-3.6.1/lib/" in the .bashrc. However, when I use Atom to connect to the same remote Julia, the session seems not be able to use the env variable of the shell. So it could not load the lib.

ERROR: InitError: error compiling __init__: error compiling initEmbeddedR: could not load library "/home/software/R-3.6.1/lib/libR.so" libRblas.so: cannot open shared object file: No such file or directory

Manually setting the LD_LIBRARY_PATH in the Julia or setting the ENV["LD_LIBRARY_PATH"] in the .juliarc.jl from startup both did not fix the problem.

What should I do? Thank you very much for your help.

@hanbinlu
Copy link
Author

I've figured out a workaround reference to the #268. According to that, the LD_LIBRARY_PATH need to be set before startup.

Atom:
Go to Julia Client setting to put the julia start command as
image

Jupyter/Hydrogen:
Edit the kernel.json file to add the env options. In my system, vim ~/.local/share/jupyter/kernels/julia-1.1/kernel.json
image

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

1 participant