php mapscript with postgresql 8.1

Armin Burger armin.burger at GMX.NET
Wed Nov 9 13:10:03 EST 2005


Stephane,

Is the path "/usr/local/pgsql/lib/" in your  /etc/ld.so.conf and have 
you run ldconfig afterwards? Just an idea, don't know if it helps in 
this case.

Armin

Stéphane RIFF wrote:
> I don't think there were an old link libpq.so.3 before compile mapserver.
> But when i try ln -s lipq.so.3 libpq.so.4 i doesn't work, my libpq.so.4
> is in /usr/local/pgsql/lib/ does it matter ?
> 
> Oliver Lichte wrote:
> 
>> 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
>>>   
>>
>>
>>  
>>
> 
> 



More information about the mapserver-users mailing list