I am trying to install the rgdal package under Ubuntu 8.10 with have
gdal 1.7.2 installed. I get the following error:
On typing:
> install.packages("rgdal")
Warning in install.packages("rgdal") :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
<snip stuff that seems irrelevant>
checking for pj_init_plus in -lproj... yes
./proj_conf_test: error while loading shared libraries: libgdal.so.1:
cannot open shared object file: No such file or directory
./proj_conf_test: error while loading shared libraries: libgdal.so.1:
cannot open shared object file: No such file or directory
Package CPP flags: -I/usr/local/include
Package LIBS: -L/usr/local/lib -lgdal
configure: creating ./config.status
config.status: creating src/Makevars
** libs
<snip other g++ stuff>
installing to /usr/local/lib/R/site-library/rgdal/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library
'/usr/local/lib/R/site-library/rgdal/libs/rgdal.so':
libgdal.so.1: cannot open shared object file: No such file or directory
ERROR: loading failed
* removing ?/usr/local/lib/R/site-library/rgdal?
The downloaded packages are in
?/tmp/RtmpQVVEl1/downloaded_packages?
Warning message:
In install.packages("rgdal") :
installation of package 'rgdal' had non-zero exit status
I have tried uninstalling and reinstalling gdal (using sudo apt-get
install). I have also tried downloading the rgdal tar.gz file and
installing using R CMD INSTALL at the shell prompt. I still get the same
error message as above.
If anyone can help me, I would be very grateful.
Thank you,
Siva
rgdal package installation error
5 messages · Siva Sundaresan, Thiago V. dos Santos, Ben Mazzotta +1 more
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20100708/dc0005a7/attachment.pl>
Could you show me the output of this command? Thanks sudo aptitude search gdal
On 7/8/10 8:32 AM, Siva Sundaresan wrote:
I am trying to install the rgdal package under Ubuntu 8.10 with have gdal 1.7.2 installed. I get the following error: On typing:
install.packages("rgdal")
Warning in install.packages("rgdal") :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
<snip stuff that seems irrelevant>
checking for pj_init_plus in -lproj... yes
./proj_conf_test: error while loading shared libraries: libgdal.so.1:
cannot open shared object file: No such file or directory
./proj_conf_test: error while loading shared libraries: libgdal.so.1:
cannot open shared object file: No such file or directory
Package CPP flags: -I/usr/local/include
Package LIBS: -L/usr/local/lib -lgdal
configure: creating ./config.status
config.status: creating src/Makevars
** libs
<snip other g++ stuff>
installing to /usr/local/lib/R/site-library/rgdal/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library
'/usr/local/lib/R/site-library/rgdal/libs/rgdal.so':
libgdal.so.1: cannot open shared object file: No such file or directory
ERROR: loading failed
* removing ?/usr/local/lib/R/site-library/rgdal?
The downloaded packages are in
?/tmp/RtmpQVVEl1/downloaded_packages?
Warning message:
In install.packages("rgdal") :
installation of package 'rgdal' had non-zero exit status
I have tried uninstalling and reinstalling gdal (using sudo apt-get
install). I have also tried downloading the rgdal tar.gz file and
installing using R CMD INSTALL at the shell prompt. I still get the
same error message as above.
If anyone can help me, I would be very grateful.
Thank you,
Siva
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Ben Mazzotta PhD Candidate Fletcher School, Tufts University
Dear Thiago, Thanks! That did the trick. I poked around the /usr/local/lib directory and I suspect the problem had something to do with libgdal.so.1, which I believe is a link to the gdal libraries(?). Once that link was created correctly (because of the installation of the GDAL libraries) it works ok. Thanks for your help. best, Siva
Thiago Veloso wrote:
Dear Siva, Installing GDAL libraries should do the trick. Search in Synaptic or download from this URL: http://packages.ubuntu.com/ro/hardy/libgdal1-1.4.0 Best regards, Thiago. --- On Thu, 8/7/10, Siva Sundaresan <nepsiva at gmail.com> wrote: From: Siva Sundaresan <nepsiva at gmail.com> Subject: [R-sig-Geo] rgdal package installation error To: r-sig-geo at stat.math.ethz.ch Date: Thursday, 8 July, 2010, 9:32 I am trying to install the rgdal package under Ubuntu 8.10 with have gdal 1.7.2 installed. I get the following error: On typing:
install.packages("rgdal")
Warning in install.packages("rgdal") :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
<snip stuff that seems irrelevant>
checking for pj_init_plus in -lproj... yes
./proj_conf_test: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
./proj_conf_test: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
Package CPP flags: -I/usr/local/include
Package LIBS: -L/usr/local/lib -lgdal
configure: creating ./config.status
config.status: creating src/Makevars
** libs
<snip other g++ stuff>
installing to /usr/local/lib/R/site-library/rgdal/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/usr/local/lib/R/site-library/rgdal/libs/rgdal.so':
libgdal.so.1: cannot open shared object file: No such file or directory
ERROR: loading failed
* removing ?/usr/local/lib/R/site-library/rgdal?
The downloaded packages are in
?/tmp/RtmpQVVEl1/downloaded_packages?
Warning message:
In install.packages("rgdal") :
installation of package 'rgdal' had non-zero exit status
I have tried uninstalling and reinstalling gdal (using sudo apt-get install). I have also tried downloading the rgdal tar.gz file and installing using R CMD INSTALL at the shell prompt. I still get the same error message as above.
If anyone can help me, I would be very grateful.
Thank you,
Siva
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Siva Sundaresan Conservation Biology Denver Zoological Foundation Denver CO 80205 USA Ecology & Evolutionary Biology Princeton University Princeton NJ 08544 USA http://www.princeton.edu/~equids http://savingstripes.wildlifedirect.org
10 days later
A late reply but I still give it since it might be of interest to people searching the archive: you should install not only libgdal, but also the package libgdal1-dev (this holds true whenever you need to compile against a library in debian/ubuntu: also install the associated -dev package). so: sudo apt-get install libgdal1-dev That package contains the headers for building gdal and contains the unversioned (or partly unversioned) libgdal.so.1 which you need to build rgdal. In fact, if I understand it correctly, you might now have actually built gdal using the headers of the 1.7.2 version and linked against the 1.4.0 version - which may lead to errors at one or another point. Johan PS: In case you are looking for a more recent version of gdal, you could add the stable or unstable ppa repositories of ubuntugis: https://launchpad.net/~ubuntugis
On Fri, Jul 9, 2010 at 7:55 AM, Siva Sundaresan <nepsiva at gmail.com> wrote:
Dear Thiago, Thanks! That did the trick. I poked around the /usr/local/lib directory and I suspect the problem had something to do with libgdal.so.1, which I believe is a link to the gdal libraries(?). Once that link was created correctly (because of the installation of the GDAL libraries) it works ok. Thanks for your help. best, Siva Thiago Veloso wrote:
?Dear Siva, ?Installing GDAL libraries should do the trick. Search in Synaptic or download from this URL: http://packages.ubuntu.com/ro/hardy/libgdal1-1.4.0 ?Best regards, ?Thiago. --- On Thu, 8/7/10, Siva Sundaresan <nepsiva at gmail.com> wrote: From: Siva Sundaresan <nepsiva at gmail.com> Subject: [R-sig-Geo] rgdal package installation error To: r-sig-geo at stat.math.ethz.ch Date: Thursday, 8 July, 2010, 9:32 I am trying to install the rgdal package under Ubuntu 8.10 with have gdal 1.7.2 installed. I get the following error: On typing:
install.packages("rgdal")
Warning in install.packages("rgdal") :
?argument 'lib' is missing: using '/usr/local/lib/R/site-library'
<snip stuff that seems irrelevant>
checking for pj_init_plus in -lproj... yes
./proj_conf_test: error while loading shared libraries: libgdal.so.1:
cannot open shared object file: No such file or directory
./proj_conf_test: error while loading shared libraries: libgdal.so.1:
cannot open shared object file: No such file or directory
Package CPP flags: -I/usr/local/include
Package LIBS: -L/usr/local/lib -lgdal
configure: creating ./config.status
config.status: creating src/Makevars
** libs
<snip other g++ stuff>
installing to /usr/local/lib/R/site-library/rgdal/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
?unable to load shared library
'/usr/local/lib/R/site-library/rgdal/libs/rgdal.so':
?libgdal.so.1: cannot open shared object file: No such file or directory
ERROR: loading failed
* removing ?/usr/local/lib/R/site-library/rgdal?
The downloaded packages are in
? ??/tmp/RtmpQVVEl1/downloaded_packages?
Warning message:
In install.packages("rgdal") :
?installation of package 'rgdal' had non-zero exit status
I have tried uninstalling and reinstalling gdal (using sudo apt-get
install). I have also tried downloading the rgdal tar.gz file and installing
using R CMD INSTALL at the shell prompt. I still get the same error message
as above.
If anyone can help me, I would be very grateful.
Thank you,
Siva
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
-- Siva Sundaresan Conservation Biology Denver Zoological Foundation Denver CO 80205 USA Ecology & Evolutionary Biology Princeton University Princeton NJ 08544 USA http://www.princeton.edu/~equids http://savingstripes.wildlifedirect.org
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo