Skip to content
Prev 11645 / 15075 Next

'nlme' package not compiling

This is the fortran against which the Mac R is compiled, provided as a disk image:

gfortran-4.2.3.dmg:
http://r.research.att.com/gfortran-4.2.3.dmg

If you had been reading the R-SIG-Mac forum (or searching the archives you should have seen repeated warnings against Macports versions.)

The proper site for Mac questions regarding package compilation.
R-SIG-Mac:
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


I'm was using Version 0.99.491 but updated to the same version as you have. The install packages dialog doesn't offer compiling from source as an options so the first test was to see if the binary could be install easily on version 3.3.0 of R.... it did.

I then tried compiling from source and do get the same error as did you. I'm  not a very capable Unix programmer and am unable to tell why this is happening. Perhaps something RStudio is doing? So I tried in the R.app gui with : 

install.packages("~/Downloads/nlme_3.1-127.tar.gz", repo=NULL, type="source")

#==== result=======
* installing *source* package ?nlme? ...
** package ?nlme? successfully unpacked and MD5 sums checked
** libs
gfortran-4.8   -fPIC  -g -O2  -c chol.f -o chol.o
make: gfortran-4.8: No such file or directory
make: *** [chol.o] Error 1
ERROR: compilation failed for package ?nlme?
Warning message:
In install.packages("~/Downloads/nlme_3.1-127.tar.gz", repo = NULL,  :
  installation of package ?/Users/davidwinsemius/Downloads/nlme_3.1-127.tar.gz? had non-zero exit status
* removing ?/Library/Frameworks/R.framework/Versions/3.3/Resources/library/nlme?
* restoring previous ?/Library/Frameworks/R.framework/Versions/3.3/Resources/library/nlme?

Also tried from Terminal.app session with similar error report.
A) Install from binary. That's certainly seems easiest.

Or B)
-- install gfortran 4.8 in the directory that your installation of R expects it to be found. 
Perhaps:

http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2

Or at the Unix command line:

curl -s http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2 | sudo tar fxj - -C /

(As was suggested by Simon Urbanek two years ago and  was reported successful by Jason Eyerly on R-SIG-Mac.)

But in any case this thread belongs on R-SIG-MAC so copying there, and if any response is needed then when responding you should remove r-help from future replies.