[Mapserver-users] php mapscript config help!
Vincent Schut
schut at sarvision.com
Wed Jul 2 05:55:40 PDT 2003
Mark,
you can check which gdal is being linked at runtime by typing 'ldd
php_mapscript.so' (in the dir where php_mapscript.so is). It will give you
info on all dynamically linked libraries.
Note that you have to run 'ldconfig' (as root) everytime you (re)install a
library, like gdal. And that the dir where the library gets installed must be
in the /etc/ld.so.conf file, or in the LD_LIBRARY_PATH environment variable.
And that the order in which dirs are in this file or var basically defines
which one of two versions of a library file will be loaded if you have for
example an old version still in /usr/lib and a newer in /usr/local/lib. If
/usr/lib is first in the path row, it will be used, and vice versa. Self
compiled libraries usually install in /usr/local/[lib|include|etc]; Distro
packages like rpms usually get installed into /usr/[lib|include|...]. If you
want to use your self compiled one, you'd better remove the preinstalled one
if there was one. And then rerun ldconfig, to refresh the dynamic linker
database/cache.
Good luck,
Vincent.
On Wednesday 02 July 2003 13:40, Paul Spencer wrote:
> Mark,
>
> I believe that the problem is that you are compiling/linking against a
> different version of GDAL than you are linking against at runtime.
>
> If you chose the default prefix for GDAL then it would be installed in
> /usr/local/lib. Is it possible that you also installed GDAL in
> /usr/lib? Or that you did not run make install after you last ran make
> on GDAL?
>
> Cheers,
>
> Paul
>
> Mark Balman wrote:
> > Hi List
> >
> > Having finally managed to get php -4.2.3 (as a cgi) and mapserver (4.0b)
> > installed onto Linux Mandrake 9 (thanks to all who have helped!), I
> > thought I would try and have a go at configuring php mapscript. I managed
> > to get a php_mapscript.so compiled without errors. Now when I call the
> > info.php page to test I recieve the following error message:
> >
> > Warning: Unable to load dynamic library
> > '/usr/local/lib/php/extensions/php_mapscript.so' -
> > /usr/local/lib/php/extensions/php_mapscript.so': undefined symbol:
> > _ZNK19OGRSpatialReference7IsLocalEv in /var/www/html/info.php on line 2
> >
> > I am guessing this means that one of the other libraries (GDAL?) is not
> > configured properly. Please can anyone shed some light on this error and
> > point me in the right direction.
> >
> > TIA
> >
> > Mark
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com
More information about the MapServer-users
mailing list