Open gaow opened 1 year ago
@gaow Did you download the R compiler tools compatible with your Mac? See here.
@pcarbo No i used the compiler that came from brew
. Just got a chance to check the link you sent, which seem to suggest we need the tools for Fortran packages so I doubt it is relevant to this issue? According to this ticket, recompile R from source solves the issue. I wonder if you have an Apple Silicon chip machine with the proper setup as you suggested but not R compiled from source code, to test if the tools you pointed out is sufficient solution?
@gaow I think you are using the wrong C/C++ compiler. As it says on CRAN, you need to use the compilers included with XCode:
"This release uses Xcode 14.2/14.3 and GNU Fortran 12.2. If you wish to compile R packages which contain Fortran code, you may need to download the corresponding GNU Fortran compiler from https://mac.r-project.org/tools/. Any external libraries and tools are expected to live in /opt/R/arm64 (Apple silicon) or /opt/R/x86_64 (Intel)."
Also make sure you are using this version of R:
For Apple silicon (M1/M2) Macs: R-4.3.1-arm64.pkg
Error message
When I run
on my new Mac with Apple M2 Pro and MacOS 13.2.1, I get:
It fails to install. This also prevents
susieR
from installing on my new Mac.Environment
Compiler:
R session
Solution
After applying this fix to
src/Makevars
It works fine. This also works on Linux OS but i'm not sure if this is a proper fix. @pcarbo what do you think --- would you like to try it out and see?