$ sudo R
> install.packages(rgdal)
worked for me on my Ubuntu machine
but, I already had GDAL library installed with
$ sudo apt-get install libgdal1-1.5.0
--
B. H. Braswell (Rob)
University of New Hampshire
On Jun 24, 2009, at 9:24 AM, Luis Ridao Cruz wrote:
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?
______________________________________________
R-help@r-project.org 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.
______________________________________________
R-help@r-project.org 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.