Skip to content

Catalina and gfortran

3 messages · Erich Subscriptions, Balamuta, James Joseph, Kevin Ushey

#
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.
#
Erich,

Try to install gfortran with this installer: 

https://cran.r-project.org/bin/macosx/tools/gfortran-6.1.pkg 

Sincerely,

JJB

?On 10/10/19, 10:28 AM, "R-SIG-Mac on behalf of Erich Subscriptions" <r-sig-mac-bounces at r-project.org on behalf of 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
#
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: