You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing on M1 mac required GNU fortran compiler (install solution) [ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1' ]
#10
Hi, just wanted to report an install issue and the fix for it, that I experienced while installing lastest version on M1 (arm64) mac.
The error:
ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1'
ld: library not found for -lemutls_w clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [RISC.so] Error 1
# for R>=4.2.0
curl -O https://mac.r-project.org/tools/gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz
# unpack
sudo tar fxz gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz -C /
#add to path
export PATH=$PATH:/opt/R/arm64/gfortran/bin
# /opt/R/arm64/gfortran/SDK has to point to your macOS SDK
sudo gfortran-update-sdk
Then I restarted R and the install worked. Hope this helps if people run into this issue.
The text was updated successfully, but these errors were encountered:
Hi, just wanted to report an install issue and the fix for it, that I experienced while installing lastest version on M1 (arm64) mac.
The error:
The fix, install GNU Fortran compiler:
See https://mac.r-project.org/tools/
Or, see drieslab/Giotto#441
Then I restarted R and the install worked. Hope this helps if people run into this issue.
The text was updated successfully, but these errors were encountered: