[R] could someone help me to install packages "gam" (ubuntu 6.06)

Dirk Eddelbuettel edd at debian.org
Fri Jul 28 18:58:49 CEST 2006


$ apt-get install r-base-dev

and you should get the required dependencies, in this case for
Blas/Atlas.

Hth, Dirk

On Fri, Jul 28, 2006 at 07:04:13AM -0700, xingwang ye wrote:
> > install.packages("gam")
> Warning in install.packages("gam") : argument 'lib' is missing: using
> /usr/local/lib/R/site-library
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/gam_0.97.tar.gz'
> Content type 'application/x-gzip' length 89613 bytes
> opened URL
> ==================================================
> downloaded 87Kb
> 
> * Installing *source* package 'gam' ...
> ** libs
> g77   -fpic  -g -O2 -c backfit.f -o backfit.o
> g77   -fpic  -g -O2 -c backlo.f -o backlo.o
> g77   -fpic  -g -O2 -c bsplvd.f -o bsplvd.o
> g77   -fpic  -g -O2 -c bvalue.f -o bvalue.o
> g77   -fpic  -g -O2 -c bvalus.f -o bvalus.o
> g77   -fpic  -g -O2 -c linear.f -o linear.o
> gcc -I/usr/share/R/include -I/usr/share/R/include     -fpic  -g -O2
> -std=gnu99 -c loessc.c -o loessc.o
> g77   -fpic  -g -O2 -c loessf.f -o loessf.o
> g77   -fpic  -g -O2 -c lo.f -o lo.o
> g77   -fpic  -g -O2 -c qsbart.f -o qsbart.o
> gcc -I/usr/share/R/include -I/usr/share/R/include     -fpic  -g -O2
> -std=gnu99 -c sbart.c -o sbart.o
> g77   -fpic  -g -O2 -c sgram.f -o sgram.o
> g77   -fpic  -g -O2 -c sinerp.f -o sinerp.o
> g77   -fpic  -g -O2 -c splsm.f -o splsm.o
> g77   -fpic  -g -O2 -c sslvrg.f -o sslvrg.o
> g77   -fpic  -g -O2 -c stxwx.f -o stxwx.o
> gcc -shared  -o gam.so backfit.o backlo.o bsplvd.o bvalue.o bvalus.o
> linear.o loessc.o loessf.o lo.o qsbart.o sbart.o sgram.o sinerp.o
> splsm.o sslvrg.o stxwx.o -lblas-3 -lg2c -lm -lgcc_s -L/usr/lib/R/lib
> -lR
> /usr/bin/ld: cannot find -lblas-3
> collect2: ld returned 1 exit status
> make: *** [gam.so] Error 1
> ERROR: compilation failed for package 'gam'
> ** Removing '/usr/local/lib/R/site-library/gam'
> 
> The downloaded packages are in
>         /tmp/RtmpQmwp2v/downloaded_packages
> Warning message:
> installation of package 'gam' had non-zero exit status in:
> install.packages("gam")
> 
> ______________________________________________
> 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.

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison



More information about the R-help mailing list