[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:17:51 EST 2011
On Wed, 2011-02-23 at 12:51 +0100, Mathieu Baudier wrote:
> > Looking for 'gdal-config' in my file system, I realised that the only
> > version that I have is the one corresponding to an old version of gdal
> > (1.7.2), which I compiled form source.
>
> Remove this one as well.
It was moved to a personal directory, not present in my PATH.
>
> > May it be that the version 1.7.3 of gdal for RHEL doesn't include this
> > 'gdal-config- file ?
>
> When you look for a missing file, try:
>
> sudo yum provides */gdal-config
>
> In this case this file is part of the gdal-devel package:
>
> sudo yum install gdal-devel
Done.
>
> 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 ?
BTW, typing now:
$ sudo yum provides */gdal-config
I got:
Loaded plugins: rhnplugin, security
gdal-1.7.2-5_0.el5.elgis.i386 : GIS file format
: library
Repo : elgis
Matched from:
Filename : /usr/bin/gdal-config
gdal-devel-1.7.2-5_0.el5.elgis.i386 : Development
...: Libraries for the GDAL file format library
Repo : elgis
Matched from:
Filename : /usr/bin/gdal-config
gdal-devel-1.7.3-3_0.el5.elgis.i386 : Development
...: Libraries for the GDAL file format library
Repo : elgis-testing
Matched from:
Filename : /usr/bin/gdal-config
gdal-devel-1.7.2-5_1.el5.elgis.i386 : Development
...: Libraries for the GDAL file format library
Repo : elgis-testing
Matched from:
Filename : /usr/bin/gdal-config
gdal-1.7.2-5_1.el5.elgis.i386 : GIS file format
: library
Repo : elgis-testing
Matched from:
Filename : /usr/bin/gdal-config
gdal-devel-1.7.3-1_0.el5.elgis.i386 : Development
...: Libraries for the GDAL file format library
Repo : elgis-testing
Matched from:
Filename : /usr/bin/gdal-config
gdal-devel-1.7.2-5_2.el5.elgis.i386 : Development
...: Libraries for the GDAL file format library
Repo : elgis-testing
Matched from:
Filename : /usr/bin/gdal-config
gdal-1.7.2-5_2.el5.elgis.i386 : GIS file format
: library
Repo : elgis-testing
Matched from:
Filename : /usr/bin/gdal-config
gdal-devel-1.4.2-4.el5.i386 : Development Libraries
...: for the GDAL file format library
Repo : epel
Matched from:
Filename : /usr/bin/gdal-config
gdal-devel-1.7.3-3_0.el5.elgis.i386 : Development
...: Libraries for the GDAL file format library
Repo : installed
Matched from:
Filename : /usr/bin/gdal-config
Thanks in advance,
Mauricio
-
=======================================================
Linux user #454569 -- Ubuntu user #17469
=======================================================
"We would accomplish many more things
if we did not think of them as impossible."
(Chretien Malesherbes)
More information about the el
mailing list