<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">Hi Göran</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">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 /
</code></pre>
<p dir="auto">should do it.</p>
<p dir="auto">See also <a href="https://pat-s.me/transitioning-from-x86-to-arm64-on-macos-experiences-of-an-r-user/#gfortran" style="color: #3983C4;">https://pat-s.me/transitioning-from-x86-to-arm64-on-macos-experiences-of-an-r-user/#gfortran</a> or <a href="https://cynkra.com/blog/2021-03-16-gfortran-macos/" style="color: #3983C4;">https://cynkra.com/blog/2021-03-16-gfortran-macos/</a> for more information.</p>
<p dir="auto">Cheers<br>
Patrick</p>
<p dir="auto">On 22 Apr 2022, at 22:01, Göran Broström wrote:</p>
</div><div class="plaintext" style="white-space: normal;"><blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;"><p dir="auto">Trying gfortran-f51f1da0-darwin20.0-arm64.tar.gz from
<br>
<a href="https://mac.r-project.org/libs-arm64/" style="color: #777777;">https://mac.r-project.org/libs-arm64/</a> (following instructions), download and unpack,</p>
<p dir="auto">but no sight of gfortran in /opt/R/arm64/bin</p>
<p dir="auto">so the building of my package fails.</p>
<p dir="auto">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
<br>
/opt/R/arm64/bin/gfortran -mtune=native -fno-optimize-sibling-calls -fPIC  -Wall -g -O2  -c chek.f -o chek.o
<br>
make: /opt/R/arm64/bin/gfortran: No such file or directory
<br>
make: *** [chek.o] Error 1</p>
<p dir="auto">Of course, there is a warning on that web page (so why the link to it?) saying that</p>
<p dir="auto">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.</p>
<p dir="auto">but there I cannot identify (by name) any file that could contain a fortran compiler.</p>
<p dir="auto">To summarize: I need help.</p>
<p dir="auto">Thanks, Göran</p>
<p dir="auto">_______________________________________________
<br>
R-SIG-Mac mailing list
<br>
R-SIG-Mac@r-project.org</p>
</blockquote></div>
<div class="markdown" style="white-space: normal;">
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto"><a href="https://stat.ethz.ch/mailman/listinfo/r-sig-mac" style="color: #777777;">https://stat.ethz.ch/mailman/listinfo/r-sig-mac</a></p>
</blockquote>

</div>
</div>
</body>

</html>