Hello Ying,
This is really a Fedora Core 6 question. But anyway, it appears that you do not
have gfortran which comes in the appropriate development package installed.
Assuming you use yum, you find out the RPM using the following
yum provides gfortran
which will give you the RPM which contains the binary for gfortran.
gcc-gfortran 4.1.1-51.fc6
If yum says this is installed, then your path is not set right. Otherwise, go
ahead and install using
yum install gcc-gfortran
as root or with sudo privileges.
HTH.
Many thanks and best wishes,
Ranjan
On Tue, 13 Feb 2007 14:47:51 -0800 (PST) YI ZHANG <zhangyiosu at
yahoo.com> wrote:
> Dear all,
> I met a problem when installing new packages on R, my system is linux
> fedora 6.0, the following is output. please help me. Thanks.
>
> > install.packages('lars')
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> trying URL
'http://www.stathy.com/cran/src/contrib/lars_0.9-5.tar.gz'
> Content type 'application/x-tar' length 188248 bytes
> opened URL
> =================================================> downloaded 183Kb
>
> * Installing *source* package 'lars' ...
> ** libs
> gfortran -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32
> -march=i386 -mtune=generic -fasynchronous-unwind-tables -c delcol.f
> -o delcol.o
> make: gfortran: Command not found
> make: *** [delcol.o] Error 127
> ERROR: compilation failed for package 'lars'
> ** Removing '/usr/lib/R/library/lars'
>
> The downloaded packages are in
> /tmp/RtmpxYqqFS/downloaded_packages
> Warning message:
> installation of package 'lars' had non-zero exit status in:
> install.packages("lars")
>
>
>
>
>
____________________________________________________________________________________
> Get your own web address.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>