[R-SIG-Mac] Catalina and gfortran

Kevin Ushey kev|nu@hey @end|ng |rom gm@||@com
Thu Oct 10 17:35:20 CEST 2019


There is a package providing gfortran 6.1 on the page at
https://cran.r-project.org/bin/macosx/tools/, and that should be used
now with the El Capitan builds of R.

FWIW, I've had success using gfortran from Homebrew gcc; you just need
to ensure that the correct Fortran libraries are passed along during
compilation. E.g. I have:

    FLIBS = -L`gfortran -print-file-name=libgfortran.dylib | xargs dirname`

in my `~/.R/Makevars`.

Best,
Kevin

On Thu, Oct 10, 2019 at 8:28 AM Erich Subscriptions
<erich.subs using neuwirth.priv.at> wrote:
>
> I am trying to produce a n R environment on clean new Catalina installation (in a VM).
> The R binary installer and RStudio work.
> Then, I installed clang7, and that seems to work also.
> gfortran, however, is a problem.
> The 4.2.3 version (still in the tools folder on CRAN) is 32bit only,
> so it does not work on Catalina.
> 6.1 from https://github.com/fxcoudert/gfortran-for-macOS/
> cannot be installed, the installer tells that it is incompatible with this version of macOS.
>
> Is there a workaround? Can I find a version of gfortran which will compile
> packages containing Fortran code?
> (I stumbled on classInt).
>
> I also tried gcc using 7 from homebrew, but could not get it to run either.
>
> _______________________________________________
> 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