<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif"><font
 face="Courier New, Courier, monospace">Hi all,<br>
<br>
I&acute;m working on establishing a mapserver environment for our intranet.
Since I&acute;m pretty new to UMN mapserver, I&acute;d like to apologize in advance
for any stupid questions I might ask.<br>
<br>
Here&acute;s my problem:<br>
I&acute;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.<br>
I compiled GDAL 1.3.0.0 from source:<br>
# ./configure \<br>
--prefix=/usr/local&nbsp;&nbsp;&nbsp;&nbsp; \<br>
--without-python&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
--with-ogr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
--with-gif=internal&nbsp;&nbsp;&nbsp;&nbsp; \<br>
--with-jpeg=internal&nbsp;&nbsp;&nbsp; \<br>
--without-jasper&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>
--with-geotiff=internal \<br>
--with-libtiff=internal \<br>
--with-libz=internal<br>
# make<br>
# make install<br>
# /usr/local/bin/gdal-config --version<br>
1.3.0<br>
#<br>
<br>
I then compiled mapserver 4.6.0:<br>
# ./configure \<br>
--without-pdf \<br>
--with-httpd=/opt/csw/apache2/sbin/httpd \<br>
--with-curl-config=/opt/csw/bin/curl-config \<br>
--with-wmsclient \<br>
--with-wfs \<br>
--with-wfsclient \<br>
--without-tiff \<br>
--with-zlib=/opt/csw \<br>
--with-jpeg=/opt/csw \<br>
--with-png=/opt/csw \<br>
--with-gif \<br>
--with-freetype=/opt/csw \<br>
--with-threads \<br>
--with-gd=/opt/csw \<br>
--with-gdal=/usr/local/bin/gdal-config \<br>
--with-ogr=/usr/local/bin/gdal-config \<br>
--with-proj=/opt/csw \<br>
--with-postgis=/opt/csw/postgresql/bin/pg_config \<br>
--with-oraclespatial=/opt/oracle \<br>
--with-php=/usr/local \<br>
--enable-debug<br>
<br>
# make<br>
# /data/build/mapserver/mapserver-4.6.0/mapserv<br>
This script can only be used to decode form results and <br>
should be initiated as a CGI process via a httpd server.<br>
<br>
Seems to be alright up to here, but as soon as I try to call the
mapserv binary via http, it won&acute;t work.<br>
The message in my apache&acute;s error_log reads:<br>
[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<br>
[Tue Aug 23 13:29:10 2005] [error] [client 10.3.3.233] Premature end of
script headers: mapserv<br>
<br>
The libgdal.so.1 can be found in /usr/local/lib:<br>
# ll /usr/local/lib/libgdal.so.1<br>
lrwxrwxrwx&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16 Aug 23 11:32
/usr/local/lib/libgdal.so.1 -&gt; libgdal.so.1.8.0<br>
My apache gets the following LD_LIBRARY_PATH as environment variable:<br>
/opt/csw/apache2/lib:/opt/csw/lib:/opt/csw/gcc3/lib:/opt/csw/include:/opt/csw/kde-gcc/lib:<br>
/opt/csw/kde-gcc/include:/usr/local/lib:/usr/local/qt/lib:/opt/sfw/lib:/usr/sfw/lib:<br>
/usr/local/pgsql/lib:/opt/oracle/lib<br>
<br>
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.<br>
<br>
As far as I know, there&acute;s no construction similar to Linux&acute;s
/etc/ld.so.conf and ldconfig on Solaris. So LD_LIBRARY_PATH seems the
only way for me to change the behaviour.<br>
<br>
I&acute;d appreciate any suggestion!<br>
<br>
Thank you very much for helping and best regards,<br>
Chris<br>
</font></font></font>
</body>
</html>