[R-sig-Debian] Problem installing "sp" package
Terje Jørgensen
terjej at imr.no
Thu Sep 5 11:45:39 CEST 2013
Hi,
I get an error message (see below) when trying to install the sp package
in R version 2.15.2 running under Ubuntu 12.04 LTS.
I have run sudo apt-get build-dep r-base, but to no help.
Any help will be greatly appreciated.
Terje
> install.packages("sp")
Installing package(s) into ‘/home/terjej/R/x86_64-pc-linux-gnu-library/2.15’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/sp_1.0-12.tar.gz'
Content type 'application/x-gzip' length 1226781 bytes (1.2 Mb)
opened URL
==================================================
downloaded 1.2 Mb
* installing *source* package ‘sp’ ...
** package ‘sp’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c Rcentroid.c -o Rcentroid.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c gcdist.c -o gcdist.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c init.c -o init.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c pip.c -o pip.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c pip2.c -o pip2.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c sp_xports.c -o sp_xports.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c surfaceArea.c -o surfaceArea.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe
-g -c zerodist.c -o zerodist.o
gcc -std=gnu99 -shared -o sp.so Rcentroid.o gcdist.o init.o pip.o pip2.o
sp_xports.o surfaceArea.o zerodist.o -L/usr/lib/R/lib -lR
installing to /home/terjej/R/x86_64-pc-linux-gnu-library/2.15/sp/libs
** R
** data
** demo
** inst
** preparing package for lazy loading
Error in setClass("CRS", slots = c(projargs = "character"), prototype =
list(projargs = character(1)), :
unused argument(s) (slots = c(projargs = "character"))
Error : unable to load R code in package ‘sp’
ERROR: lazy loading failed for package ‘sp’
* removing ‘/home/terjej/R/x86_64-pc-linux-gnu-library/2.15/sp’
Warning in install.packages :
installation of package ‘sp’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpVJ95Je/downloaded_packages’
More information about the R-SIG-Debian
mailing list