Help with building python mapscript

Sean Gillies sgillies at FRII.COM
Tue Mar 8 18:15:40 EST 2005


On Mar 8, 2005, at 2:45 PM, Allan Hollander wrote:

> Hi,
>
> I'm trying to build python mapscript for mapserver 4.4.1 and it seems
> to
> be unable to find the OGR library. This is on Debian Sarge. Here's the
> error message when I run the test in mapscript/python/tests/cases:
>
> ---
>
> % python runalltests.py -v
> Traceback (most recent call last):
>   File "runalltests.py", line 59, in ?
>     m = __import__(test)
>   File
> "/usr/local/src/mapserver-4.4.1/mapscript/python/tests/cases/
> classtest.py",
> line 39, in ?
>     from testing import mapscript
>   File
> "/usr/local/src/mapserver-4.4.1/mapscript/python/tests/cases/
> testing.py",
> line 59, in ?
>     import mapscript
>   File "../../build/lib.linux-i686-2.3/mapscript.py", line 4, in ?
>     import _mapscript
> ImportError: ../../build/lib.linux-i686-2.3/_mapscript.so:
> undefinedsymbol: getExteriorRing__10OGRPolygon
>
> ---
>
> I have built gdal-1.2.5 with ogr and have installed it to /usr/local. I
> also have /usr/local/lib as an entry in my ld.so.conf file and rehashed
> the library database with ldconfig. So I don't understand why
> _mapscript.so is failing to find the OGR symbol above.
>
> If anyone can share thoughts about why I'm getting this problem is it
> would be much appreciated.
>
> Thanks,
>
> Allan Hollander
>
>

Allan, do you have any other GDAL versions on your system?  Any chance
of a mismatch between the GDAL/OGR you pointed the configure script at,
and the library in /usr/local/lib?

Sean


--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies



More information about the mapserver-users mailing list