[El] Problem installing 'rgdal' package under R 2.12.1 and gdal 1.7.3

Mauricio Zambrano mauricio.zambrano at jrc.ec.europa.eu
Wed Feb 23 08:29:41 EST 2011


-  
=======================================================
Linux user #454569 -- Ubuntu user #17469
=======================================================
"We would accomplish many more things 
if we did not think of them as impossible."
(Chretien Malesherbes)


On Wed, 2011-02-23 at 14:17 +0100, Mathieu Baudier wrote:
> >> Please tell us if it solved your problem.
> >
> > Not sure.
> >
> > After doing as you mentioned, I was able to install 'rgdal' without any
> > problem, but when it is loaded, I see that the GDAL library associated
> > with the 'rgdal' package is 1.7.2 and NOT the 1.7.3 that I just
> > installed:
> >
> >> library(rgdal)
> > Loading required package: sp
> > Geospatial Data Abstraction Library extensions to R successfully loaded
> > Loaded GDAL runtime: GDAL 1.7.2, released 2010/04/23
> > Path to GDAL shared files: /usr/local/share/gdal
> > Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
> > Path to PROJ.4 shared files: (autodetected)
> >
> > Do you have any guess about the possible origin of this problem ?
> 
> Did you clean the GDAL (1.7.2) related stuff under /usr/local/lib and
> /usr/local/share?

In /usr/local/lib, I still have:

-rw-r--r-- 1 root root  45M Oct 20 11:12 libgdal.a
-rwxr-xr-x 1 root root 1.3K Oct 20 11:12 libgdal.la
lrwxrwxrwx 1 root root   17 Oct 20 11:12 libgdal.so -> libgdal.so.1.14.2
lrwxrwxrwx 1 root root   17 Oct 20 11:12 libgdal.so.1 ->
libgdal.so.1.14.2
-rwxr-xr-x 1 root root  28M Oct 20 11:12 libgdal.so.1.14.2

and in /usr/local/share:

drwxr-xr-x  2 root root 4.0K Feb 21 15:15 applications
drwxr-xr-x  2 root root 4.0K Oct 20 11:12 gdal
drwxr-xr-x  3 root root 4.0K Nov 16 14:31 gnome


May I just remove all the files within /usr/local/lib and the
directory /usr/local/share/gdal ?



> I am afraid that the system is still finding GDAL 1.7.2 libraries (not
> executables) there.



More information about the el mailing list