Linking problems

Philip Mark Donaghy philip.donaghy at GMAIL.COM
Sat Oct 15 14:59:15 PDT 2005


Thanks Pram,

My last problem was resolved by rerunning ./configure

Now that mapserv is built I tried it out and the gd library is not getting
linked.

opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd mapserv
linux-gate.so.1 => (0xffffe000)
libgd.so.2 => not found
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4002b000)
libpng.so.3 => /usr/lib/libpng.so.3 (0x40093000)
libc.so.6 => /lib/tls/libc.so.6 (0x400c1000)
libm.so.6 => /lib/tls/libm.so.6 (0x401d7000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x401fa000)
libz.so.1 => /lib/libz.so.1 (0x402b7000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x402c9000)

The LD_LIBRARY_PATH environment variable solves this...

opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> export
LD_LIBRARY_PATH=/usr/local/lib

opensource at lns-bzn-31-82-252-227-123:~/soft/bin/mapserver-4.6.1> ldd mapserv
linux-gate.so.1 => (0xffffe000)
libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40018000)
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40065000)
libpng.so.3 => /usr/local/lib/libpng.so.3 (0x400cd000)
libc.so.6 => /lib/tls/libc.so.6 (0x40110000)
libm.so.6 => /lib/tls/libm.so.6 (0x40226000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40249000)
libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x40306000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40338000)

Apache is having the same problem but the environment variable does not
resolve this. error_log...

[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

Thanks for any hints,
Philip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051015/3aae9bb9/attachment.htm>


More information about the MapServer-users mailing list