Re: [R] gfortran command not found?

2009-06-12 Thread chaogai
Hi Alon,

It works for me.
According to YAST I got libgfortran4.3, gcc-43fortran and gcc-fortran
installed

Kees
Marc Schwartz wrote:
 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.


__
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.


[R] gfortran command not found?

2009-06-11 Thread Alon Ben-Ari
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?

Alon Ben-Ari, MD
Dept Of Anesthesiology.
University of Pittsburgh

[[alternative HTML version deleted]]

__
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.


Re: [R] gfortran command not found?

2009-06-11 Thread Marc Schwartz

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.