Skip to content

Rgdal on Centos 5.6

4 messages · Guillermo Ponce-Campos, Edzer Pebesma, Roger Bivand +1 more

#
On 09/09/2012 09:46 PM, Guillermo Ponce-Campos wrote:
I'm not familiar with CentOS nor with yum, but it seems that you
overlooked the error message above, and that you need to solve that
first to install gdal. Only then can you install rgdal.
#
On Sun, 9 Sep 2012, Guillermo Ponce-Campos wrote:

            
Why would you think that, when the README file in the package, also 
available in:

https://r-forge.r-project.org/scm/viewvc.php/pkg/inst/README?view=markup&root=rgdal

says nothing of the sort? It, and the package description on CRAN, say 
that GDAL and PROJ.4 must be installed first with their dependencies, 
especially dependencies for the drivers you need.

It is often the case that GDAL binaries are bundled with many dependencies 
that are irrelevant for users - most common drivers are provided when 
installing from source. You also seem to have an unhealthy mix of 32 and 
64 bit dependencies. I strongly advise first establishing which drivers 
you need, then running ./configure in a source install of GDAL, and seeing 
which dependencies are missing for the drivers you need. You need to 
address these, and of course install PROJ.4, which may be less of a 
problem. Once you have a working GDAL, rgdal installs without further 
difficulty.

Hope this clarifies,

Roger

PS. Current stable GDAL is 1.9.1, not 1.8.0, which came out in January 
2011; building from source gives you more recent software too.