[mapserver-users] Postgres library
Philippe Kruschitz
p_kruschitz at hotmail.com
Thu Apr 24 04:36:26 PDT 2008
Hi,
I just compiled Mapserver 5.0.2 from source with all needed libraries (and postgres+postgis).
Everything worked fine, I copied the mapserv file into my cgi-bin directory, but mapserver only returns a blank page in the browser.
I checked the Apache error-log, which showed following output:
[Thu Apr 24 06:09:15 2008] [error] [client 127.0.0.1] /var/www/cgi-bin/mapserv: error while loading shared libraries: libpq.so.5: failed to map segment from shared object: Permission denied
[Thu Apr 24 06:09:15 2008] [error] [client 127.0.0.1] Premature end of script headers: mapserv
/etc/ld.so.conf was properly set-up before building:
include ld.so.conf.d/*.conf
/usr/local/lib
/usr/local/pgsql/lib
and running '/sbin/ldconfig -v | more' returned:
....
/usr/local/lib:
libcharset.so.1 -> libcharset.so.1.0.0
libpng.so.3 -> libpng.so.3.26.0
libiconv.so.2 -> libiconv.so.2.4.0
libgd.so.2 -> libgd.so.2.0.0
/usr/local/pgsql/lib:
libecpg_compat.so.3 -> libecpg_compat.so.3.0
libpq.so.5 -> libpq.so.5.1
libpgtypes.so.3 -> libpgtypes.so.3.0
libecpg.so.6 -> libecpg.so.6.0
liblwgeom.so.1 -> liblwgeom.so.1.3
....
and 'ls -la /usr/pqsql/lib' gets me something like this:
....
lrwxrwxrwx 1 root root 12 23. Apr 08:29 libpq.so -> libpq.so.5.1
lrwxrwxrwx 1 root root 12 23. Apr 08:29 libpq.so.5 -> libpq.so.5.1
-rwxr-xr-x 1 root root 153626 23. Apr 08:29 libpq.so.5.1
....
Am I missing something here? If anybody has a clue, I would very thankful.
Regards,
Philippe
_________________________________________________________________
Trouvez vos infos rapidement et précisément avec Windows Live Instant Search ! Essayez-le maintenant!
http://g.msn.ca/ca55/220
More information about the MapServer-users
mailing list