Solaris 10: libgdal.so.1

Christian Schaffer christian.schaffer at MUENCHEN.DE
Tue Aug 23 08:36:08 EDT 2005


Hi all,

I´m working on establishing a mapserver environment for our intranet. 
Since I´m pretty new to UMN mapserver, I´d like to apologize in advance 
for any stupid questions I might ask.

Here´s my problem:
I´m on an AMD Opteron based server, Solaris 10 installed with perl 
5.8.7, freetype 2.1.10, gd 2.0.33, proj4 4.4.8, curl 7.14.0 and a couple 
more packages (gcc, bison, binutils, apache, apache2, several libs...) 
installed from blastwave.org.
I compiled GDAL 1.3.0.0 from source:
# ./configure \
--prefix=/usr/local     \
--without-python        \
--with-ogr              \
--with-gif=internal     \
--with-jpeg=internal    \
--without-jasper        \
--with-geotiff=internal \
--with-libtiff=internal \
--with-libz=internal
# make
# make install
# /usr/local/bin/gdal-config --version
1.3.0
#

I then compiled mapserver 4.6.0:
# ./configure \
--without-pdf \
--with-httpd=/opt/csw/apache2/sbin/httpd \
--with-curl-config=/opt/csw/bin/curl-config \
--with-wmsclient \
--with-wfs \
--with-wfsclient \
--without-tiff \
--with-zlib=/opt/csw \
--with-jpeg=/opt/csw \
--with-png=/opt/csw \
--with-gif \
--with-freetype=/opt/csw \
--with-threads \
--with-gd=/opt/csw \
--with-gdal=/usr/local/bin/gdal-config \
--with-ogr=/usr/local/bin/gdal-config \
--with-proj=/opt/csw \
--with-postgis=/opt/csw/postgresql/bin/pg_config \
--with-oraclespatial=/opt/oracle \
--with-php=/usr/local \
--enable-debug

# make
# /data/build/mapserver/mapserver-4.6.0/mapserv
This script can only be used to decode form results and
should be initiated as a CGI process via a httpd server.

Seems to be alright up to here, but as soon as I try to call the mapserv 
binary via http, it won´t work.
The message in my apache´s error_log reads:
[Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] ld.so.1: 
/data/www/faithless/cgi-bin/mapserv: fatal: libgdal.so.1: open failed: 
No such file or directory
[Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] Premature end of 
script headers: mapserv

The libgdal.so.1 can be found in /usr/local/lib:
# ll /usr/local/lib/libgdal.so.1
lrwxrwxrwx   1 root     root          16 Aug 23 11:32 
/usr/local/lib/libgdal.so.1 -> libgdal.so.1.8.0
My apache gets the following LD_LIBRARY_PATH as environment variable:
/opt/csw/apache2/lib:/opt/csw/lib:/opt/csw/gcc3/lib:/opt/csw/include:/opt/csw/kde-gcc/lib:
/opt/csw/kde-gcc/include:/usr/local/lib:/usr/local/qt/lib:/opt/sfw/lib:/usr/sfw/lib:
/usr/local/pgsql/lib:/opt/oracle/lib

I tried with apache 1.3.x as well as with apache 2.0.x, changed the 
LD_LIBRARY_PATH to any variation, I could imagine. But no success yet.

As far as I know, there´s no construction similar to Linux´s 
/etc/ld.so.conf and ldconfig on Solaris. So LD_LIBRARY_PATH seems the 
only way for me to change the behaviour.

I´d appreciate any suggestion!

Thank you very much for helping and best regards,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050823/4c8223a7/attachment.html


More information about the mapserver-users mailing list