Python Mapscript
Sean Gillies
sgillies at FRII.COM
Sun Dec 11 14:44:54 PST 2005
On Dec 11, 2005, at 3:26 PM, Michael Hinke wrote:
> Hello-
>
> I am in the process of trying to configure Mapserver 4.6.1 for Python
> mapscript. When I test the installation I receive several errors,
> the are:
>
>
> [mike at azuma cases]$ python runalltests.py -v
> Traceback (most recent call last):
> File "runalltests.py", line 59, in ?
> m = __import__(test)
> File
> "/home/mike/gsource/mapserver-4.6.1/mapscript/python/tests/cases/
> symbolsettest.py",
> line 39, in ?
> from testing import mapscript, MapTestCase, TESTMAPFILE,
> XMARKS_IMAGE
> File
> "/home/mike/gsource/mapserver-4.6.1/mapscript/python/tests/cases/
> testing.py",
> line 61, in ?
> import mapscript
> File "../../build/lib.linux-i686-2.4/mapscript.py", line 4, in ?
> import _mapscript
> ImportError: libpq.so.4: cannot open shared object file: No such
> file or
> directory
>
> I assume that this has to do with changing paths. Any ideas? Uh,
> I am new
> to all of this.
>
> M.
Michael,
Looks like libpq isn't on your library path. On my Linux system,
libpq is in /usr/local/pgsql/lib, and I had to add that path to
LD_LIBRARY_PATH.
BTW, 4.6.2 is out and has a couple useful bug fixes.
cheers,
Sean
---
Sean Gillies
sgillies at frii dot com
http://zcologia.com/news
More information about the MapServer-users
mailing list