[mapserver-users] Problem installing PHP Mapscript
Mark.Wilson at rohoel.at
Mark.Wilson at rohoel.at
Mon Apr 22 23:29:04 PDT 2002
I'm having a problem installing PHP/MapScript. As I have a third party
hosting my site, I have been forced to use the workaround which involves
configuring a copy of the PHP source before compiling mapscript. Everything
seems to go OK. I have a working mapserv executable, and I get a
php_mapscript.so.
However, when I place php_mapscript.so in my extensions directory and do a
phpinfo() from a test page, I get the following error:
Warning: Unable to load dynamic library
'/usr/local/lib/php/20010901/php_mapscript.so' -
/usr/local/lib/php/20010901/php_mapscript.so: Undefined symbol
"PQconnectdb" in /usr/local/etc/httpd/htdocs/test.php3 on line 11
I searched the archives and found one other occurrence of this problem, but
no follow up messages. Anyone have a clue as to what is wrong here?
My PHP config and Mapserver config parameters are below, in case they shed
any light on the situation:
PHP Config:
./configure --enable-inline-optimization --with-
apxs=/usr/local/apache/1.3.22/bin/apxs --with-config-file-
path=/usr/local/lib --disable-debug --enable-memory-limit --without-pear
--with-regex=system --enable-mbstring --enable-mbstr-enc-trans
--with-gdbm=/usr/local --enable-sockets --enable-versioning
--with-ttf=/usr/local --enable-ftp --with-gd=/usr/local
--enable-gd-native-ttf --with-zlib --with-zlib-dir=/usr --with-
mysql=/usr/home/wwholida/usr/local/mysql --with-
pgsql=/usr/home/wwholida/usr/local
Mapserver Config:
./configure --prefix=/usr/home/wwholida/usr/local --with-
jpeg=/usr/home/wwholida/usr/local/jpeg-6b --with-
gd=/usr/home/wwholida/usr/local/gd-1.8.4 --with-
png=/usr/home/wwholida/usr/local/lib --with-freetype --with-zlib
--with-proj=/usr/home/wwholida/usr/local/proj-4.4.3 --with-
ogr=/usr/home/wwholida/usr/local/gdal-1.1.6/ogr --without-gdal
--with-postgis=/usr/home/wwholida/usr/local/bin/pg_config
--without-wmsclient --enable-runpath --with-
php=/usr/home/wwholida/usr/local/php-4.1.2 --with-
apxs=/usr/local/apache/1.3.22/bin/apxs
mapserv -v output:
MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS
INPUT=OGR INPUT=SHAPEFILE
Thanks in advance for any help. I'm stumped.
Mark
More information about the MapServer-users
mailing list