Help with building python mapscript

Allan Hollander adh at ICE.UCDAVIS.EDU
Tue Mar 8 13:45:45 PST 2005


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



More information about the MapServer-users mailing list