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

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Sat 29 Jul 2006 - 02:58:49 EST

$ 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@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

______________________________________________
R-help@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.
Received on Sat Jul 29 03:03:19 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 29 Jul 2006 - 04:16:59 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.