[R-SIG-Mac] Installing gfortran

Luis Puerto |u|@@puerto@@r @end|ng |rom gm@||@com
Sat Apr 23 13:23:48 CEST 2022


Hey Patrick,

I think the blog post is top notch!!! Thanks a lot for sharing!!! I was looking for something like that for a while!

Cheers!
Luis

> On 23 Apr 2022, at 09:44, Patrick Schratz <patrick.schratz using gmail.com> wrote:
> 
> Signed PGP part
> FWIW blog posts which explain such things usually have a (good) reason - they aim to help people getting started when the official documentation is either unclear, hard to find or incomplete.
> It’s on the readers themselves to decide whether such blog posts are trustworthy or useful.
> 
> I have personally profited so often from blog posts of others already and therefore find the general advice to not consult such resources quite shortsighted.
> Of course the official documentation should always be the first point to have a look at - and in this case the required information would have been there.
> 
> Apologies for going partly off-topic but I think this point is important.
> 
> Cheers
> Patrick
> 
> On 23 Apr 2022, at 2:13, Simon Urbanek wrote:
> 
>> For posterity - please always consult
>> 
>> https://mac.r-project.org/tools/ (linked from CRAN)
>> 
>> 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.
>> 
>> 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
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20220423/9094fa34/attachment.sig>


More information about the R-SIG-Mac mailing list