[R] 'nlme' package not compiling

Angelo Varlotta angelovarlotta at gmail.com
Mon Apr 18 09:48:54 CEST 2016

I'm trying to install from source code the 'nlme' package in 
RStudio. When I try, I get the following error message:

ld: warning: directory not found for option 
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to 
see invocation)
make: *** [nlme.so] Error 1
ERROR: compilation failed for package ‘nlme’
* removing 
* restoring previous 
Warning in install.packages :
   installation of package ‘nlme’ had non-zero exit status

I'm using gfortran 4.8 from Macports and running OS X 10.11.4 
with RStudio Version 0.99.893. I've tried to use the FLIBS 
command in R:


so that it knows where the Fortran libraries are at and compile 
again, but it still searchesregardless for the directory:


which of course doesn't exist. Any suggestions?


	[[alternative HTML version deleted]]

More information about the R-help mailing list