-
Notifications
You must be signed in to change notification settings - Fork 22
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
gfortran FLIBS search path hard coded and pointed to the wrong directory on recent installs #207
Comments
rig does not set FLIBS, all it does is installing gfortran. Unfortunately this is a bit cumbersome to set up, the R config has hardcoded paths. I hope we can make it easier in the future. Right now this fixed it for me:
|
That's great. That does work for me too. Is it worth keeping this issue opened and close it if we can automate this somehow in future? |
Yeah, let's keep it open. Unfortunately it is pretty hard to automate things for multiple R versions, gfortran versions, arm64 and x86_64, etc. But I am planning to take a thorough look at least. |
Maybe a compromise is an interactive guided command that shows you the versions available and creates the symlink or something. I know it's not the solution but it's a step up from guessing the path to symlink both from and to. |
Oh, you don't need to guess. This is where R is looking for it:
and you link it to the one that you have installed. Similarly to The complications start when you install multiple R versions, and they need different gfortran versions, etc. |
I've been researching this issue myself, and found that setting the following in
I haven't been able to find a package that fails to compile without What I've learned so far:
So... it seems likely to me that |
Reproduction steps:
This yields:
Setting
~/.R/Makevars
to the following fixes it:So my question is, where is the disconnect here and where is the
FLIBS
variable being set by rig when it installs R 4.1.3?While I'm okay with having my own overrides in my home directory, however it's not a good onboarding experience for new devs in future for them to have to look in
/opt/R/arm64/gfortran
and try and work out the directory versions, and then override them as it's likely to change in future.Is this something rig can resolve so the default install steps work without needing a custom Makevars file?
The text was updated successfully, but these errors were encountered: