Skip to content
Prev 11274 / 15075 Next

Problems to install a package

There error here is, as it says:
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
http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2).
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:

    http://brew.sh/

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.

    http://stackoverflow.com/questions/29992066/rcpp-warning-directory-not-found-for-option-l-usr-local-cellar-gfortran-4-8
    http://stackoverflow.com/questions/19920281/rcpparmadillo-compile-errors-on-os-x-mavericks/19920761#19920761

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?)

Hope this helps,
Kevin
On Mon, Jul 27, 2015 at 7:19 PM, David Winsemius <dwinsemius at comcast.net> wrote:

Thread (27 messages)

José Carlos Guerrero Antúnez Problems to install a package Jul 27 David Winsemius Problems to install a package Jul 27 Kevin Ushey Problems to install a package Jul 27 Berend Hasselman Problems to install a package Jul 27 Rainer M Krug Problems to install a package Jul 28 José Carlos Guerrero Antúnez Problems to install a package Jul 28 Kevin Ushey Problems to install a package Jul 28 Berend Hasselman Problems to install a package Jul 28 Simon Urbanek Problems to install a package Jul 28 David Winsemius Problems to install a package Jul 28 José Carlos Guerrero Antúnez Problems to install a package Jul 29 David Winsemius Problems to install a package Jul 29 Brandon Hurr Problems to install a package Jul 29 Berend Hasselman Problems to install a package Jul 29 David Winsemius Problems to install a package Jul 29 José Carlos Guerrero Antúnez Problems to install a package Jul 29 José Carlos Guerrero Antúnez Problems to install a package Jul 29 Davor Cubranic Problems to install a package Jul 30 Simon Urbanek Problems to install a package Jul 30 Berend Hasselman Problems to install a package Jul 30 Timothy Bates Problems to install a package Jul 31 Peter Dalgaard Problems to install a package Jul 31 José Carlos Guerrero Antúnez Problems to install a package Jul 31 Berend Hasselman Problems to install a package Jul 31 Peter Dalgaard Problems to install a package Jul 31 Marc Schwartz Problems to install a package Jul 31 Peter Dalgaard Problems to install a package Jul 31