[Mapserver-users] PHP mapscript install problems

Timothy.Mackey at ga.gov.au Timothy.Mackey at ga.gov.au
Thu Mar 20 21:57:08 EST 2003


Hi,

I've installed mapserver 3.6.4 (CGI and PHP) and php 4.3.1 (as CGI) on Solaris 8.

But when I try "phpinfo()" I get the following error (before the general PHP info comes up normally).

Warning: dl() [function.dl]: Unable to load dynamic library '/public/http/php/extensions/php_mapscript.so' - ld.so.1: php: fatal: relocation error: file /public/http/php/extensions/php_mapscript.so: symbol _ZN21OGRGeometryCollection16getNumGeometriesEv: referenced symbol not found in ..../info.php on line 10

It looks like a LD_LIBRARY_PATH problem to me, but "ldd php_mapscript.so" at the command line finds all of the libraries.

What am I doing wrong? 

here's my mapscript configure:
./configure --prefix=$MAPSERV \
   --includedir=$MAPSERV/include \
   --libdir=$MAPSERV/lib \
   --without-eppl \
   --with-tiff=$MAPSERV/tiff-v3.5.5 \
   --with-gd=$MAPSERV \
   --with-jpeg=$MAPSERV/jpeg-6b \
   --with-proj=$MAPSERV/proj-4.4.4 \
   --with-php=$PHP/php-4.3.1 \
   --with-sde=$MAPSERV/sde82 \
   --with-sde-version=82 \
   --with-oraclespatial=/d/ora/oracle2/oradev/9.2.0.1.0 \
   --with-gdal=$MAPSERV/gdal-1.1.7.2/bin/gdal-config \
   --with-ogr=$MAPSERV/gdal-1.1.7/ogr

and here's the PHP configure:
./configure --prefix=/public/http/php \
        --with-pdflib=../pdflib \
        --with-freetype-dir=$MAPSERV/freetype-2.0.4 \
        --with-gd=$MAPSERV \
        --with-jpeg-dir=$MAPSERV/jpeg-6b \
        --with-png-dir=$MAPSERV/lib \
        --with-zlib-dir=$MAPSERV/zlib-1.1.3 \
        --without-pear \
        --with-regex=system \
        --enable-force-cgi-redirect \
        --with-config-file-path=/public/http/php


Tim Mackey
Web Applications Manager
Corporate Information Management and Access
Geoscience Australia
timothy.mackey at ga.gov.au
ph: (02) 6249 9813
mobile: 0413 382 509
http://www.ga.gov.au






More information about the mapserver-users mailing list