[mapserver-users] libgdal error with php/MapScript

Alan Boudreault aboudreault at mapgears.com
Thu Jan 8 06:39:14 PST 2009


Yves,

Did you look is there is any  "libgdal.so*" file in the lib directory?
If there's one... but it's not named "libgdal.so.1" .... maybe you could
try to make a symbolic link to it.

Alan

Jacolin Yves wrote:
> Hello,
>
> I get an error when loading php_mapscript.so in my apache config.
>
> Here is my config:
> * Centos 4 (in an openvz system)
> * PHP 4.3.9 (with GD 2.0.28)
> * Apache 2
> * GD 2.0.35
> * AGG 2.4
> * Mapserver 5.2.1
> * geos 3.0.3
> * gdal-ogr 1.6.0
> * proj 4.6.1
>
> MapServer configure:
> ./configure 
> --with-agg=/usr/local/src/build/agg-2.4 
> --with-postgis 
> --with-wmsclient --with-wfsclient 
> --with-geos --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config 
> --with-php=/usr/include/php/
> --with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/local/ --with-python
>
> GDAL-OGR configure:
> ./configure 
> --with-python 
> --with-pg=/usr/local/pgsql/bin/pg_config
> --without-grass
>
> After installing all dependance and set up php config to enable php_mapscript, 
> I try to look if php/mapscript is really enabled:
> $ php -i | grep mapscript
> give:
> PHP Warning:  Unknown(): Unable to load dynamic 
> library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open shared 
> object file: No such file or directory in Unknown on line 0
> /etc/php.d/mapscript.ini
>
> There is no mapscript table in phpinfo() function.
>
> Any tips to find a solution?
>
> Thanks in advance.
>
> Y.
>   


-- 
Alan Boudreault
Mapgears
http://www.mapgears.com




More information about the MapServer-users mailing list