8000 Problems with gfortran location in installation? (OSX) · Issue #24 · timothyfrasier/related · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Problems with gfortran location in installation? (OSX) #24

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

Open
BirdmanRidesAgain opened this issue Nov 26, 2024 · 2 comments
Open

Problems with gfortran location in installation? (OSX) #24

BirdmanRidesAgain opened this issue Nov 26, 2024 · 2 comments

Comments

@BirdmanRidesAgain
Copy link

Hello,

I am attempting to compile and load Related on a OSX system (M2 chip, if that makes a difference).

I initially followed the instructions on this Repo's README to the letter, but when I ran the final install command in Rstudio ('install.packages("~/related_1.0.tar.gz", repos = NULL, type = "source")', it failed with the following message:

sh: /opt/gfortran/bin/gfortran: Not a directory
Warning in system(paste(fc, "--version"), intern = TRUE) :
running command '/opt/gfortran/bin/gfortran -arch arm64 --version' had status 126
using Fortran compiler: ‘NA’
using SDK: ‘MacOSX14.0.sdk’
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c family_sim.c -o family_sim.o
/opt/gfortran/bin/gfortran -arch arm64 -fPIC -Wall -g -O2 -c related.f90 -o related.o
make: /opt/gfortran/bin/gfortran: No such file or directory
make: *** [related.o] Error 1
ERROR: compilation failed for package ‘related’
removing ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/related’

Looking at the first error, I assumed it was a problem with my gfortran installation. I confirmed that I had a working version at /opt/homebrew/bin/gfortran, and then added that location to my path as well. In both cases, the same error occurs, where the makefile seems to be looking for gfortran at /opt/gfortran/bin/gfortran (where it doesn't exist), causing fatal errors.

Do you have either the whole makefile (so I can use my working fortran to compile the package before installing it), or some suggestions on what's going wrong?
Thanks in advance for your time.

@timothyfrasier
Copy link
Owner
timothyfrasier commented Nov 29, 2024 via email

@BirdmanRidesAgain
Copy link
Author

I appreciate the reply, and actually ended up doing something similar to make it work. related ended up not being a great solution for our SNP datasets anyways, but it was nice to at least try it out.

547E

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
0