[FGS] Unable to load dynamic library

Guillaume Dallaire gdallaire at dmsolutions.ca
Tue May 3 01:19:31 EDT 2005


Hi Bart,

> Hello All,
> I've tried for 2 days to get around this problem with no luck.  I'm
> getting the following error when I try to open any of the chameleon
> demo web pages...
>
> Warning: dl(): Unable to load dynamic library
> '/opt/fgs/www/lib/php4/php_mapscript.so' - libSM.so.6: cannot open
> shared object file: No such file or directory
>
> The offending line of php code looks like...
> dl( "php_mapscript.so" );
>
> If I check the directory /opt/fgs/www/lib/php4/ I can see the file
> php_mapscript.so exits so I'm a little confused why the dl function is
> failing -it's looking in the right spot and the file exists.
>

when PHP loads php_mapscript.so, php_mapscript requires this DLL : 
libSM.so.6

(you can use the command ldd to see what DLLs an exacutable (or a DLL) 
needs)

> Redhat 9.0 (with Fedora Core 2.0)

With RedHat 9.0, this DLL should be in /usr/X11R6/lib... so X11 needs to be 
installed.
I think if you install X11's RPM lib packages it will work.

On next FGS release, it will be a good idea to try to remove this 
dependency.

Guillaume




More information about the Foss-gis-suite mailing list