[Gdal-dev] New 1.2.6 install breaks python scripts
Frank Warmerdam
fwarmerdam at gmail.com
Tue Apr 5 03:32:46 EDT 2005
On Apr 4, 2005 6:02 PM, Ken Boss <Ken.Boss at dnr.state.mn.us> wrote:
> I've just done a fresh build and install of gdal-1.2.6 on a Solaris box
> (installed to /usr/local/gdal-1.2.6).
>
> Now, when I try to run an existing python script, I get:
>
> Traceback (most recent call last):
> File "/usr/local/scripts/pixelPusher/gdal_mosaic.py", line 52, in ?
> import gdal
> File "/usr/local/lib/python2.1/site-packages/gdal.py", line 179, in
> ?
> import _gdal
> ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error:
> file /usr/local/gdal-1.2.6/lib/libgdal.so.1: symbol cerr: referenced
> symbol not found
>
> FWIW, /usr/local/scripts/pixelPusher/gdal_mosaic.py has been around for
> a long time, and has not changed since the new install.
> /usr/local/lib/python2.1/site-packages/gdal.py appears from the
> timestamp to have been installed today along with 1.2.6. Same
> (obviously) with /usr/local/gdal-1.2.6/lib/libgdal.so.1, which is a
> symbolic link to /usr/local/gdal-1.2.6/lib/libgdal.so.1.7.0.
Ken,
The missing symbol, cerr, sounds like a C++ dependency.
I suspect you will need to force linking with the C++ support
libraries. Normally I accomplish this by using
"g++ -shared" as the linker in the LD_SHARED variable
in the GDALmake.opt. Do you have a GNU build environment?
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 | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list