On Wed, 13 Nov 2013, cyndy-jer wrote:
Hi folks -
I'm having trouble with rgdal on a Linux machine (specifically, CentOS 6.2).
I've successfully installed sp and GeoTiff, Gdal, and a few other goodies
from instructions on this page:
http://scigeo.org/articles/howto-install-latest-geospatial-software-on-linux.html#libtiff
This page appears to be written by someone without sufficient insight into
basic Linux handling of shared objects, and without understanding the need
to clarify and simplify. There is no need to install most of the drivers
suggested, there is no need to build and install GDAL with all the flags
given, there is no need to put it in a special /opt location, there is no
need to build from trunk.
However, given that you've followed these arcane instructions, did you add
the install location to a directory under /etc/ld.so.conf.d as root, then
run /sbin/ldconfig to make the shared objects stored there available?
The page does use LD_LIBRARY_PATH, and does run ldconfig from time to
time, but the page is far too picky.
Also consult:
https://r-forge.r-project.org/scm/viewvc.php/pkg/inst/README?view=markup&root=rgdal
or inst/README in the rgdal TARBALL for accumulated installation hints.
Hope this clarifies,
Roger
But when I go into R and install.packages("rgdal") I get the following
error:
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
* unable to load shared object
'/usr/local/lib64/R/library/rgdal/libs/rgdal.so':
libgdal.so.1: cannot open shared object file: No such file or directory*
Error: loading failed
Execution halted
However:
[root@jornada-devvlt2 libkml-trunk]# cd
/usr/local/lib64/R/library/rgdal/libs/
[root@jornada-devvlt2 libs]# ls
libgdal.so.1 rgdal.so test
??? Can anyone shed any light on what might be wrong, here?
Thanks much.
--
View this message in context:
http://r-sig-geo.2731867.n2.nabble.com/trouble-installing-rgdal-on-CentOs-6-2-help-tp7585104.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: roger.biv...@nhh.no
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo