[R] rgdal package -- Error in installing package
Luis Ridao Cruz
luisr at hav.fo
Wed Jun 24 15:24:34 CEST 2009
R-help,
I'm trying to install the rgdal package under Ubuntu
but I get the following warning:
> install.packages("rgdal")
Warning in install.packages("rgdal", configure.args = "--with-gdal-modules=/usr/local/lib") :
argument 'lib' is missing: using '/home/luisridaocruz/R/x86_64-pc-linux-gnu-library/2.8'
which causes the error:
> library("rgdal")
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/home/luisridaocruz/R/x86_64-pc-linux-gnu-library/2.8/rgdal/libs/rgdal.so':
libgdal.so.1: cannot open shared object file: No such file or directory
Error: package/namespace load failed for 'rgdal'
If I try the following:
> install.packages("rgdal",configure.args="--with-gdal-modules=/usr/local/lib")
Warning in install.packages("rgdal", configure.args = "--with-gdal-modules=/usr/local/lib") :
argument 'lib' is missing: using '/home/luisridaocruz/R/x86_64-pc-linux-gnu-library/2.8'
trying URL 'http://cran.ii.uib.no/src/contrib/rgdal_0.6-8.tar.gz'
Content type 'ap
.....
....
Then the same error occurs and by doing:
> install.packages("rgdal",configure.args="--with-gdal-modules=/usr/local/lib",lib="/usr/local/lib")
Warning in install.packages("rgdal", configure.args = "--with-gdal-modules=/usr/local/lib", :
'lib = "/usr/local/lib"' is not writable
Error in install.packages("rgdal", configure.args = "--with-gdal-modules=/usr/local/lib", :
unable to install packages
Can anyone helps?
More information about the R-help
mailing list