R version: 4.2.2
Arm64 with M1 SoC

my problem is totally same as this guy 
https://support.bioconductor.org/p/9148182/
so i search in Google and downlaod gfortan is neccessary.
Therefore, I have download ARM64 Macs: 
gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz from 
https://github.com/R-macos/gcc-darwin-arm64/releases/tag/R-4.2.0-release , but 
i can't understand how to use gfortran in R to library package so the problem 
is still unsolved.




In detail, i can't understand the following steps because i am a medical 
student and know a little about professional CS.




"This binary installs into /opt/R/arm64/gfortran with an additional symlink in 
/opt/R/arm64/bin/gfortran. To unpack use

tar fxz gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz -C /


(prefix with sudo if you need admin permissions to write to /opt/R/arm64). To 
use set

export PATH=$PATH:/opt/R/arm64/gfortran/bin


In addition, /opt/R/arm64/gfortran/SDK has to point to your macOS SDK. The 
binary above points to MacOSX11.sdk of Xcode Command Line Tools, but you may 
need to change it to match your installation. We include a script 
gfortran-update-sdk in the above tar ball that you can simply run (prefix with 
sudo if you require admin permissions).

This build has been configured with:

../gcc-darwin-arm64/configure --prefix=/opt/R/arm64/gfortran 
--enable-languages=c,fortran \
   --with-gmp=/opt/R/arm64 --with-mpc=/opt/R/arm64 --with-mpfr=/opt/R/arm64 \
   --with-sysroot=/opt/R/arm64/gfortran/SDK"
Sincerely Yours
Bowen Lai


        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to