PHP MapScript installation problem
Fernando S.
fsimon at UNIVALI.BR
Tue Feb 15 06:55:46 PST 2005
Hi Jussi,
I believe that the best way to fix this is setting a variable for
apache web server. Another way is include the path for library in
ld.so.conf.
Here I defined this in httpd.conf of apache:
SetEnv LD_LIBRARY_PATH
"/opt/oracle/product/10.1.0/client_1/lib:/lib:/usr/lib:/usr/local/lib"
Thanks.
------------------------------------------------------------------------
Fernando Simon
Mapserver and Oracle Spatial developer
G10 - Laboratorio de Computacao Aplicada - Brazil
http://g10.cttmar.univali.br - UNIVALI/CTTMAR
------------------------------------------------------------------------
Jussi Rasinmäki wrote:
>Hi,
>
>I've tried to install Mapserver with PHP Mapscript on Whitebox Linux 3, but
>have run into difficulties with PHP and php_mapscript.so.
>dl("php_mapscript.so") returns the following warning:
>Warning: dl(): Unable to load dynamic library
>'/usr/local/php/extensions/php_mapscript.so' - libclntsh.so.10.1: cannot
>open shared object file: No such file or directory in /var/www/html/info.php
>on line 7
>
>PHP 4.3.10 is installed using the following configuration:
>./configure --enable-shared --with-jpeg-dir=/usr --with-png-dir=/usr --with-
>zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi-redire
>ct --with-config-file-path=/usr/local/php/ --prefix=/usr/local/php
>
>and the php.ini in /user/local/php has the following line:
>extension_dir = "/usr/local/php/extensions/"
>
>Mapserver is configured as:
>./configure --without-tiff --without-eppl --with-threads --with-proj --with-
>gdal --with-oraclespatial=/opt/app/oracle/product/10.1.0/Db_1 --with-php=/op
>t/app/mapserver/mapserver_libs/php-4.3.10 --with-gd=/usr/local --with-freet
>ype=/usr/bin --with-wmsclient
>
>and the built php_mapscript.so is copied to /usr/local/php/extensions
>
>However, php-config --extension-dir returns
>/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429
>which is a non-existing directory.
>
>What went wrong?
>
>Thanks,
>Jussi Rasinmäki
>
>
>
More information about the MapServer-users
mailing list