[Cartoweb-users] Problem with php-mapscript

Eric Lemoine eric.lemoine at gmail.com
Fri Jan 26 14:44:40 EST 2007


On 1/26/07, Gianluigi Giacomel <Gianluigi.Giacomel at geo.unige.ch> wrote:
>
>  Hi

Hi Gianluigi

>
>  After an upgrade on my Debian
> (http://infogeo.unige.ch/info.php), my projects with
> Cartoweb 3.1don't work any more... I had this error message :
>
>  Unable to load dynamic library
> '/usr/lib/php5/20060613/php_mapscript.so' -
> /usr/lib/php5/20060613/php_mapscript.so: cannot open shared
> object file

My guess would be that the php5 package got upgraded but not the
php5-mapscript package. Maybe you could try to force the update of
php5-mapscript (apt-get install php5-mapscript), hoping that there is
actually an update for that package.


>
>  I tried to copy file php_mapscript.so from directory usr/lib/php5/20041030
> to usr/lib/php5/200606130, but a new error message appears :
>
>  Unable to initialize module Module compiled with module API=20041030,
> debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0,
> thread-safety=0

By copying php_mapscript.so from 20041030 to 200606130 you are forcing
PHP to use a module whose module API is older than that of PHP itself,
and PHP just doesn't like that.


-- 
Eric


More information about the Cartoweb-users mailing list