[R-SIG-Mac] Installing gfortran

Göran Broström gor@n@bro@trom @end|ng |rom umu@@e
Sat Apr 23 09:57:10 CEST 2022



On 2022-04-23 02:13, Simon Urbanek wrote:
> For posterity - please always consult
> 
> https://mac.r-project.org/tools/ (linked from CRAN)

Today, that is. Yesterday the link was different, pointing the way I 
explained. The gfortran version I got that way is referred to "previous 
version (before R 4.2.0)" in today's link. So I need to uninstall it 
before I upgrade to 4.2.0.

Is it as simple as removing /opt/R/arm64/gfortran and 
/opt/R/arm64/bin/gfortran?

> 
> The old locations like libs* are no longer updated and have been
> deprecated in favor of /tools and /bin which are maintained for all
> builds. Similarly, I would strongly discourage following any advice
> from blogs as they tend to be outdated, wrong or both.

I wouldn't dream of consulting random blogs in so serious matters.

Thanks for your help!

  Göran


> Cheers Simon
> 
> 
>> On Apr 23, 2022, at 10:48 AM, Göran Broström
>> <goran.brostrom using umu.se> wrote:
>> 
>> 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>
>>> 
>> 
>> _______________________________________________ R-SIG-Mac mailing
>> list R-SIG-Mac using r-project.org 
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>



More information about the R-SIG-Mac mailing list