Thanks Pram,<br>
<br>
My last problem was resolved by rerunning ./configure<br>
<br>
Now that mapserv is built I tried it out and the gd library is not getting linked.<br>
<br>
opensource@lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd mapserv<br>
linux-gate.so.1 => (0xffffe000)<br>
libgd.so.2 => not found<br>
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4002b000)<br>
libpng.so.3 => /usr/lib/libpng.so.3 (0x40093000)<br>
libc.so.6 => /lib/tls/libc.so.6 (0x400c1000)<br>
libm.so.6 => /lib/tls/libm.so.6 (0x401d7000)<br>
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x401fa000)<br>
libz.so.1 => /lib/libz.so.1 (0x402b7000)<br>
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)<br>
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x402c9000)<br>
<br>
The LD_LIBRARY_PATH environment variable solves this...<br>
<br>
opensource@lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> export LD_LIBRARY_PATH=/usr/local/lib<br>
<br>
opensource@lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd mapserv<br>
linux-gate.so.1 => (0xffffe000)<br>
libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40018000)<br>
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40065000)<br>
libpng.so.3 => /usr/local/lib/libpng.so.3 (0x400cd000)<br>
libc.so.6 => /lib/tls/libc.so.6 (0x40110000)<br>
libm.so.6 => /lib/tls/libm.so.6 (0x40226000)<br>
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40249000)<br>
libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x40306000)<br>
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)<br>
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40338000)<br>
<br>
Apache is having the same problem but the environment variable does not resolve this. error_log...<br>
<br>
[Sat Oct 15 23:59:22 2005] [error] [client ::1]
/home/opensource/soft/bin/httpd-2.0.54/cgi-bin/mapserv: error while
loading shared libraries: libgd.so.2: cannot open shared object file:
No such file or directory<br>
<br>
Thanks for any hints,<br>
Philip<br>