[Cartoweb-users] Can't load mapscript library - Suse 10

Pebble Puppy pebble_puppy at hotmail.com
Tue Apr 4 23:56:49 EDT 2006


Hello,

I am running Suse 10 and am trying to get Cartoweb up and running.  I have 
built both PHP5 and Mapserver from source.  PHP5 is 5.1.2, Mapserver is 
4.8.2, and Cartoweb 3.2

I installed the basic Cartoweb demo with:

/usr/local/cartoweb3 # /usr/local/apache2/php/bin/php cw3setup.php --install 
--base-url http://www.example.com/cartoweb

When I try to run "http://localhost/cartoweb/client.php" the browser returns 
(only first few lines shown):
Failure

class:   SoapFaultWrapper
message:   can't load mapscript library
Backtrace:

file: 152 - /usr/local/cartoweb3/server/MapInfoHandler.php
call: ServerContext->getMapObj()

file: 49 - /usr/local/cartoweb3/server/ServerMapInfoCache.php
call: MapInfoHandler->loadMapInfo()


My PHP configure looks like:
./configure --prefix=/usr/local/apache2/php 
--with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql --enable-dbase 
--with-config-file-path=/usr/local/apache2/php

and my Mapserver configure looks like:
./configure --with-wfs --with-wfsclient --with-wmsclient 
--with-proj=/usr/local/lib --with-gdal=/usr/local/bin/gdal-config 
--with-ogr=/usr/local/bin/gdal-config  
--with-geos=/usr/local/bin/geos-config --with-php=/usr/local/php-5.1.2 
--with-postgis=/usr/local/pgsql/bin/pg_config 
--with-httpd=/usr/local/apache2/bin/httpd  --prefix=/usr/local


I have verified that mapserver is running:
# /usr/local/apache2/cgi-bin/mapserv which returns:

This script can only be used to decode form results and
should be initiated as a CGI process via a httpd server.



The php extensions directory referenced in /usr/local/apache2/php/php.ini is 
located at /usr/local/apache2/php

I have verified that I have the "php_mapscript.so" in 
/usr/local/mapserver-4.8.2/mapscript/php3/ and I have also copied this into 
/usr/local/apache2/php



When I run 'index.php' from my browser where 'index.php' contains:
<?php
	echo phpinfo();
?>

the browser returns several tables of information regarding PHP 5.1.2


In the /usr/local/apache2/php/php.ini file I have a line: 
extension=php_mapscript


I would really appreciate some help.  Thanks!!

Robert




More information about the Cartoweb-users mailing list