php mapscript with postgresql 8.1

Oliver Lichte lichte at ICBM.DE
Wed Nov 9 06:44:14 EST 2005


Hallo Steff,

it could be there is a link which refers to nothing named libpq.so.3 on your 
system. If it exists you must remove it and repeat compilation. As a really 
straight-forward work-around you could create an symbolic link 'libpq.so.3' 
refering to libpq.so.4 by 
ln -s libpq.so.3 libpq.so.4 
within the according directory (/usr/lib I guess). In this case you must not 
compile again, but there is no guarantee that it works.

Regards,
Oliver

Am Mittwoch, 9. November 2005 12:02 schrieb Stéphane RIFF:
> Trying to run PHPMapscript 4.6.1 against posgresql 8.1, postgis 1.0.4,
> php 4.3.9
>
> All compiles fine without error. But when i launch the application in
> the browser i get those errors :
>
> dl(): Unable to load dynamic library
> '/usr/local/lib/php/ext/php_mapscript.so' - libpq.so.3: cannot open
> shared object file: No such file or directory
> *Fatal error*: Call to undefined function: ms_newmapobj() in */var/www/html
>
> *But with postgresql 8.1 the libpq.so.3 doesn't exist it's libpq.so.4
>
> So does anyone get this to work, or maybe postgresql 8 is not supported
> by mapserver now???
>
> Any workaround is welcome
>
> Thanks
> Steff

-- 
ICBM - University of Oldenburg
PO-Box 2503 * 26111 Oldenburg - Germany
fon:+49-441-798-3622 * fax:+49-441-798-3404
http://www.icbm.de/impulse



More information about the mapserver-users mailing list