[GRASSLIST:4630] Re: r.in.gdal error?

Glynn Clements glynn.clements at virgin.net
Thu Oct 3 13:11:35 EDT 2002


andres javier garcia garcia wrote:

> GBBridgeInitialize() failed to find an suitable GDAL .DLL/.so file.
> The following filenames were searched for:
>   o libgdal.1.1.so
>   o gdal.1.0.so
>   o gdal.so.1.0
>   o libgdal.so.1
> 
> The following locations were searched:
>   o /usr/local/grass5/lib
>   o System default locations.
> 
> 
> System default locations may be influenced by:
> LD_LIBRARY_PATH = /usr/local/grass5/lib
> ERROR: Unable to initialize GDAL bridge (check libgdal
>        installation/LD_LIBRARY_PATH variable).
> ---------------------------------------------------------
> But I'm sure I've got libgdal.1.1.so in /usr/local/grass5/lib; so I don't 
> know how to solve this.

It may be that libgdal.1.1.so depends upon other libraries which can't
be found. Try running:

	ldd /usr/local/grass5/lib/libgdal.1.1.so

I get:

	libtiff.so.3 => /usr/lib/libtiff.so.3 (0x400ce000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40111000)
	libpng.so.2 => /usr/lib/libpng.so.2 (0x40130000)
	libz.so.1 => /usr/lib/libz.so.1 (0x40153000)
	libdl.so.2 => /lib/libdl.so.2 (0x40162000)
	libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x40166000)
	libm.so.6 => /lib/libm.so.6 (0x401a8000)
	libc.so.6 => /lib/libc.so.6 (0x401c5000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

If you see "not found" in the output, then your copy of libgdal
requires libraries which you don't have.

In particular, it normally requires a very specific version of
libstdc++, and won't work with any other version. In turn, any
particular version of libstdc++ will normally only work with a
specific version of libc.

If it can't find the TIFF, JPEG or PNG libraries, then it's probably
just a matter of installing the appropriate package. OTOH, if the
problem is with the version of the C++ library, you'll probably need
to either:

a) obtain a version of libgdal which was compiled for your specific OS
distribution and version, or

b) compile libgdal yourself.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-user mailing list