On Jun 11, 2009, at 12:34 PM, Alon Ben-Ari wrote:

Hello, I have openSUSE 11.1
Trying to install randomForest
as SU  after invoking R   install.packages("randomForest")

and I get this

* Installing *source* package ‘randomForest’ ...
** libs
gcc -std=gnu99 -I/usr/lib/R/include -I/usr/local/include -fpic - O2 -c
classTree.c -o classTree.o
gcc -std=gnu99 -I/usr/lib/R/include -I/usr/local/include -fpic - O2 -c
regTree.c -o regTree.o
gcc -std=gnu99 -I/usr/lib/R/include -I/usr/local/include -fpic - O2 -c
regrf.c -o regrf.o
gcc -std=gnu99 -I/usr/lib/R/include -I/usr/local/include -fpic - O2 -c
rf.c -o rf.o
gfortran   -fpic  -O2 -c rfsub.f -o rfsub.o
make: gfortran: Command not found
make: *** [rfsub.o] Error 127
ERROR: compilation failed for package ‘randomForest’
* Removing ‘/usr/lib/R/library/randomForest’

The downloaded packages are in
   ‘/tmp/RtmpLEyfgR/downloaded_packages’
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("randomForest") :
 installation of package 'randomForest' had non-zero exit status



I checked that I have th  fortran library

S | Name          | Summary                                  | Type
--+---------------+------------------------------------------+--------
i | libgfortran41 | The GNU Fortran Compiler Runtime Library | package
i | libgfortran43 | The GNU Fortran Compiler Runtime Library | package

Any ideas how to solve this impass?



I have not worked on SUSE, but check to see where gfortran is located:

  $ which gfortran

and be sure that it returns the path to the executable and that the path to it is in your $PATH.

You might also want to review:

  http://cran.r-project.org/doc/manuals/R-admin.html#Using-FORTRAN

HTH,

Marc Schwartz

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to