[Mapserver-users] 3.7 needing Oracle lib?

Frank Warmerdam warmerdam at pobox.com
Tue Feb 25 07:22:11 PST 2003


Oliver Wesp wrote:
> Hi,
> 
> This is not a real problem to me, I was just wondering. I recently 
> compiled 3.7 (nightly.tar 02/23/2003) with
> 
> ./configure --with-gdal=/path/to/gdal-config
> 
> mapserver -v and ./mapserver from the shell worked fine. But as soon as 
> I tried to use it via cgi an internal server error occurred. The apache 
> log told me there was libclntsh.so.8.o missing. This is a library from 
> Oracle. I added $ORACLE_HOME/lib to my LD_LIBRARY_PATH and everything 
> went fine.
> But why is mapserver requesting this, although it's not compiled with 
> oracle spatial support? And what if there is NO oracle on the server 
> machine? Can anybody shed any light on this?

Oliver,

Sorry about that.  The GDAL makefile (GDALmake.opt) is currently automatically
including Oracle Spatial support in OGR if the ORACLE_HOME environment variable
is set when you build.  This should be controlled by a configure option but
currently is not.

To avoid this do a clean build of GDAL with the ORACLE_HOME environment
variable temporary unset.  libclntsh.so is a fair chunk of stuff to have
to load at runtime if you don't need it!

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the MapServer-users mailing list