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

Issue with julia_setup on Ubuntu 22.10 #192

Open
jeremiedb opened this issue Dec 31, 2022 · 1 comment
Open

Issue with julia_setup on Ubuntu 22.10 #192

jeremiedb opened this issue Dec 31, 2022 · 1 comment

Comments

@jeremiedb
Copy link

jeremiedb commented Dec 31, 2022

I'm having encoutering issues with julia_setup which I haven't been able to circumvent with the various debug tricks seen so far.
More specificaly, I've been able to run julia_setup() after adding the Julia libs to R_LD_LIRABRY_PATH in .bashrc. However, when doing so, it disables the internet routines:

> library(JuliaCall)
> julia_setup()
Julia version 1.8.4 at location /home/jeremiedb/Downloads/julia-1.8.4/bin will be used.
Loading setup script for JuliaCall...
Finish loading setup script for JuliaCall.

> Sys.getenv("LD_LIBRARY_PATH")
[1] "/home/jeremiedb/Downloads/julia-1.8.4/lib/julia:/usr/lib/R/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/default-java/lib/server"

> install.packages("plotly")
Installing package into/home/jeremiedb/R/x86_64-pc-linux-gnu-library/4.2’
(aslibis unspecified)
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
  internet routines cannot be loaded

Line in .bashrc: export R_LD_LIBRARY_PATH=/home/jeremiedb/Downloads/julia-1.8.4/lib/julia

If the R_LD_LIBRARY_PATH is not exported, then the following crash occurs when using julia_setup:

> library(JuliaCall)
> julia_setup(verbose=T)
Julia version 1.8.4 at location /home/jeremiedb/Downloads/julia-1.8.4/bin will be used.
Loading setup script for JuliaCall...
Bus error (core dumped)

It seems like adding the Julia libs to LD_LIBRARY_PATH effectively works to make JuliaCall work, but messes with some other R libs (maybe curl?). I'm however getting lost as to how further investigate this.

@Faraz564
Copy link

AoA Dear Jeremiedb
I am facing issue with Julia. Last time I used to run my model but after updating the R-Studio I had problem. Then after encountering this trouble I did reinstall R, S-Studio and Julia but the problem remain the same in system. I see you have run the julia setup so I want to run this setup after juliacall run properly. I also going to post here screenshot of R-Studio. Please see this and gave me some suggestion.
JuliaCall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants