Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X package installation depends on gfortran-4.8

Tags:

r

fortran

I'm using the OS X devel version of R

R Under development (unstable) (2014-05-27 r65787) Platform: x86_64-apple-darwin13.1.0 (64-bit) 

with GNU Fortran (GCC) 4.2.3 (from Simon's site) and version 5.1.1 of Xcode's command line tools.

When building from source, I get errors like:

gfortran-4.8   -fPIC  -g -O2  -c altmov.f -o altmov.o make: gfortran-4.8: No such file or directory 

I'm not sure what to do here. I could create an alias to the version I have but I'm not sure if it really needs 4.8 or not.

Thanks,

Max

like image 975
topepo Avatar asked May 28 '14 15:05

topepo


People also ask

Does GCC install gfortran?

The gfortran compiler is part of the standard “gcc” compiler package, and may be pre-installed on recent unix systems.

What version of Fortran is gfortran?

The GFortran compiler is fully compliant with the Fortran 95 Standard and includes legacy F77 support.

Is gfortran a Fortran 90?

Yes, gfortran can compile FORTRAN 77 and Fortran 90,95 etc.


1 Answers

Type these two lines in your terminal, direct quote:

curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2 sudo tar fvxj gfortran-4.8.2-darwin13.tar.bz2 -C / 

It will download you the gfortran for Mavericks (which is missing in your system at the moment) and will install it in your system. At least, this solved the same problem for me

(I'm running late 2011 MacPro, Mavericks).

like image 95
TheBigMike Avatar answered Sep 24 '22 00:09

TheBigMike