[R-SIG-Mac] Installing gfortran
Göran Broström
gor@n@bro@trom @end|ng |rom umu@@e
Sat Apr 23 00:48:22 CEST 2022
Hi Patrick,
Den 2022-04-22 kl. 22:54, skrev Patrick Schratz:
> Hi Göran
>
> |curl -O
> https://mac.r-project.org/libs-arm64/gfortran-f51f1da0-darwin20.0-arm64.tar.gz
> sudo tar fvxz gfortran-f51f1da0-darwin20.0-arm64.tar.gz -C / |
>
> should do it.
It did. Thanks!
Göran
>
> See also
> https://pat-s.me/transitioning-from-x86-to-arm64-on-macos-experiences-of-an-r-user/#gfortran
> <https://pat-s.me/transitioning-from-x86-to-arm64-on-macos-experiences-of-an-r-user/#gfortran>
> or https://cynkra.com/blog/2021-03-16-gfortran-macos/
> <https://cynkra.com/blog/2021-03-16-gfortran-macos/> for more information.
>
> Cheers
> Patrick
>
> On 22 Apr 2022, at 22:01, Göran Broström wrote:
>
> Trying gfortran-f51f1da0-darwin20.0-arm64.tar.gz from
> https://mac.r-project.org/libs-arm64/
> <https://mac.r-project.org/libs-arm64/> (following instructions),
> download and unpack,
>
> but no sight of gfortran in /opt/R/arm64/bin
>
> so the building of my package fails.
>
> clang -arch arm64
> -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG
> -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c
> c2f.c -o c2f.o
> /opt/R/arm64/bin/gfortran -mtune=native -fno-optimize-sibling-calls
> -fPIC -Wall -g -O2 -c chek.f -o chek.o
> make: /opt/R/arm64/bin/gfortran: No such file or directory
> make: *** [chek.o] Error 1
>
> Of course, there is a warning on that web page (so why the link to
> it?) saying that
>
> IMPORTANT: All binaries are moving to a unified repository under
> /bin/darwin<ver>/<arch> with manifest file to simplify automated
> installataion. Go to /bin/darwin20/arm64 for latest Big Sur arm64
> binaries. The following is only kept for legacy access.
>
> but there I cannot identify (by name) any file that could contain a
> fortran compiler.
>
> To summarize: I need help.
>
> Thanks, Göran
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
>
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> <https://stat.ethz.ch/mailman/listinfo/r-sig-mac>
>
More information about the R-SIG-Mac
mailing list