Skip to content
Back to formatted view

Raw Message

Message-ID: <CAJXgQP2_PfoW3xZDCox9_rF525i2cfw+hspnT4bac6F4HAyQzA@mail.gmail.com>
Date: 2019-10-10T15:35:20Z
From: Kevin Ushey
Subject: Catalina and gfortran
In-Reply-To: <BE33A211-6BF7-4A13-94CD-08863696F4F1@neuwirth.priv.at>

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 at 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 at 7 from homebrew, but could not get it to run either.
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac