[R-SIG-Mac] Problems to install a package
bhh at xs4all.nl
Tue Jul 28 07:38:27 CEST 2015
> On 28-07-2015, at 04:49, Kevin Ushey <kevinushey at gmail.com> wrote:
> There error here is, as it says:
>> make: gfortran-4.8: No such file or directory
> In other words, `make` is attempting to call `gfortran-4.8` to compile
> FORTRAN code in your package, but is unable to find it -- likely
> because it's not installed.
> Since 'gfortran' is no longer distributed as part of Apple's command
> line tools, you'll need to install it from another source -- Simon
> Urbanek hosts a version of 'gfortran' at http://r.research.att.com/
> (more specifically, in the `libs` directory at
> You'll want to unpack it in the root folder at `/` (or move it there
> after unpacking); the directory structure is such that the necessary
> pieces are dumped into `/usr/local/` and R will by default be able to
> discover everything needed.
> Alternatively (if you're prepared to do a bit more work), you can use
> the OS X package manager homebrew to install 'gcc' and hence
> 'gfortran'. Install homebrew following the instructions here:
> and then, from the command line, call
> brew install gcc
> This will install an up-to-date version of both 'gcc' and 'gfortran'.
> Since it won't be installed into a directory that's 'visible' to R by
> default, you'll need to tell R how to find it -- you can check the
> StackOverflow questions + responses here for ideas on how to
> accomplish that.
> As an aside -- I am not sure why make is attempting to call
> `gfortran-4.8` rather than `gfortran`. You might have to check
> `~/.R/Makevars` or other package configuration variables. (Do you
> _really_ need to be compiling with `gfortran-4.8` specifically?)
gfortran-4.8 is being called because that’s the Fortran compiler in building the R package for Mavericks and higher.
It’s specified in the file /Library/Frameworks/R.framework/Versions/3.2/Resources/etc/Makeconf
More information about the R-SIG-Mac