[Gdal-dev] gdal-1.3.1 installation: gdal-config, gdal_translate, gdalinfo all show different versions

Frank Warmerdam warmerdam at pobox.com
Wed Mar 8 08:29:43 EST 2006


Nagesh Bhatkar wrote:
> Dear GDAL Users,
> I installed gdal-1.3.1 on mandriva 2006,
> now i get the following
> 
> gdal-config --version
> 1.3.1
> which  gdal-config
> /usr/local/bin/gdal-config
> 
> gdal_translate --version
> GDAL 1.2.6.0, released 2005/03/13
> which gdal_translate
> /usr/local/bin/gdal_translate
...
> If i want to remove all existing installations (if any) of the gdal 
> library,
> what are the steps i need to follow. So that i can install the new version
> fresh.

Nagesh,

The difference between gdal-config and gdal_translate or gdalinfo is that
gdal-config is reporting the version burned into the "mainline" (the
file /usr/local/bin/gdal-config) while the others are reporting the
version in the shared library (libgdal.so).  So, presumably what is
happening is a different shared library is being picked up and used.
Like /usr/lib/libgdal.so.

You can find out what shared libraries are being used with the ldd
command.

eg.
ldd /usr/local/bin/gdalinfo

How to remove all existing installations depends on how they were installed.
You might want to do "locate libgdal" to find installed versions of the
library.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list