[FGS] Problem loading dynamic libraries
Guillaume Dallaire
gdallaire at dmsolutions.ca
Thu Aug 4 08:06:01 EDT 2005
On Thu, 2005-08-04 at 12:55 +0100, Hermann Kaser wrote:
> I downloaded and installed "FGS Base with GMap" and got the demo to run Ok.
>
> I use Plesk on my webserver running Plesk to manage my domains and setup and
> can't get MapServer to work with it.
>
> if(!extension_loaded("MapScript"))
> dl('php_mapscript.'.PHP_SHLIB_SUFFIX);
>
> shows:
>
> Warning: dl(): Unable to load dynamic library
> '/usr/lib/php4/php_mapscript.so' - libmap.so.4.4.1: cannot open shared
> object file: No such file or directory in
> /home/httpd/vhosts/domain.com/httpdocs/index.php on line 4
>
> Yet doing:
>
> [root at server root]# ls -al $FGS_HOME/lib | grep libmap
> lrwxrwxrwx 1 root root 15 Aug 1 12:44 libmap.so -> libmap.so.4.4.1
> -rwxrwxr-x 1 root root 739852 Feb 18 00:11 libmap.so.4.4.1
>
> Since FGS runs off it's own server would this have anything to do with
> permissions?
When you start the FGS's Apache, LD_LIBRARY_PATH has to be set with the
path to the FGS's lib directory ($FGS_HOME/lib). This is done by the
setenv.sh script:
export LD_LIBRARY_PATH=$FGS_HOME/lib:$LD_LIBRARY_PATH
You could try to source setenv.sh ($ . setenv.sh) just before starting
your webserver.
Guillaume
More information about the Foss-gis-suite
mailing list