Skip to content
Prev 16703 / 29559 Next

rgdal compile error on RHEL5 [SEC=UNCLASSIFIED]

On Wed, 14 Nov 2012, twuest wrote:

            
You are the only person with access to relevant information. What your 
"same error" is, only you know - no text from any existing thread is 
included in your message.

Th error refers to the one originally posted by Andrew Harley (see above):
When running "R CMD INSTALL rgdal", the installation fails with

...
configure: error: GDALAllRegister not found in libgdal.


For all systems installing rgdal from source, it is recommended that you 
consider not installing binary external dependencies, but installing them 
from source. All of the Linux GIS packages, be it Debian or RPM, have 
had numerous reported problems. So far, all installation problems on such 
systems have turned out to be problems in the external dependencies of 
rgdal, often multiple installs of GDAL (with the library pointed to by 
gdal-config not being the first such in the search path), or similar.


I previously removed the old gdal RPMs, so there should be no 'gdal'
left-overs.

With elgis' gdal-1.7.3-3_0.el5.elgis.x86_64 and rgdal version 0.6-33, things
worked fine.


So this is work for you, nobody else. Using binary packages has advantages 
and disadvantages, you've hit a disadvantage, that "dependency hell" has 
said "hello".


Well, installing from source may resolve one particular problem but
introduces again new dependencies. Beside providing binaries, package
managers and repositories such as 'elgis' for RHEL (and many others) are
helping a lot to resolve exactly this "dependency hell".

Thus, I guess this issue might interest others too.

Thomas