[mapserver-dev] ERROR WORKING WITH MAPSERVER

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu Feb 28 04:46:33 PST 2013


On 13-02-27 10:25 PM, reactorh wrote:
> hi,
> 
> I compilded Mapserver and when i try to used it i got this:
>  PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/php_mapscript.so' -
> libmapserver-6.2.0.so: cannot open shared object file: No such file or
> directory in Unknown on line 0
> 
> when i look for the lub i got this:
> find / -name  libmapserver-6.2.0.so
> /root/map/mapserver-6.2.0/.libs/libmapserver-6.2.0.so
> /usr/local/lib/libmapserver-6.2.0.so
> 
> ¨Please could some one help me out with this issue...
> 
> 

I've been in your situation many times also.  A nice trick is to check
what library paths php_mapscript.so is using, such as:

  sudo ldd php_mapscript.so

      which should show you the paths it is trying to use for the
dependant libs:


        linux-gate.so.1 =>  (0xb7fc3000)
        libmapserver-6.3-dev.so =>
/usr/local/lib/libmapserver-6.3-dev.so (0xb7dd1000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7d4d000)
        libproj.so.0 => /usr/local/lib/libproj.so.0 (0xb7d0e000)
        libgdal.so.1 => /usr/local/lib/libgdal.so.1 (0xb7286000)
        libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0xb725e000)
        libgeos-3.2.2.so => /usr/local/lib/libgeos-3.2.2.so (0xb70e2000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb706a000)
        ...


Sometimes all that is needed is to make a symbolic link to a different
lib name.

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/





More information about the mapserver-dev mailing list