[mapserver-users] sudden inability to find non-missing libttf.so.4.0
gisweb at lmi.net
gisweb at lmi.net
Wed Oct 9 18:32:24 PDT 2002
List:
Mapserver 3.5 installed successfully on a FreeBSD platform and was merrily
pumping out beautiful interactive web maps. Until yesterday. For no apparent
reason, mapserv now reports that it "Can't find shared library 'libttf.so.4.0'."
Apache's error_log reports the following:
> tail -5 error_log
ld.so failed: Can't find shared library "libttf.so.4.0"
[Wed Oct 9 18:07:09 2002] [error] [client 32.102.91.129] Premature end of scrip
t headers: /usr/home/gisweb/www/cgi-bin/mapserv
And yet, the libttf.so.4.0 library is alive and well exactly where mapserv
expects to find it, as evidenced by the following ldd output and subsequent ls -
l check of the directory location. (The same is true of all other libraries
listed by ldd.)
> ldd mapserv
mapserv:
-lm.2 => /usr/lib/libm.so.2.0 (0x2007a000)
-lpng.3 => /usr/local/lib/libpng.so.3.0 (0x20094000)
-lz.2 => /usr/lib/libz.so.2.0 (0x200ad000)
-ljpeg.9 => /usr/local/lib/libjpeg.so.9.0 (0x200b9000)
-lttf.4 => /usr/home/gisweb/local/lib/libttf.so.4.0 (0x200d5000)
-lpdf.1 => /usr/local/lib/libpdf.so.1.1 (0x200fa000)
-ltiff.3 => /usr/local/lib/libtiff.so.3.0 (0x20121000)
-lproj.3 => /usr/local/lib/libproj.so.3.1 (0x2015e000)
-lc.3 => /usr/lib/libc.so.3.1 (0x2018c000)
> ls -l /usr/home/gisweb/local/lib
total 1396
-rw-r--r-- 2 gisweb wheel 10194 Sep 20 09:04 gd.h
-rw-r--r-- 2 gisweb wheel 917 Sep 20 09:04 gd_io.h
-rw-r--r-- 1 gisweb wheel 185736 Sep 20 09:04 libgd.a
-rw-r--r-- 1 gisweb wheel 436250 Sep 24 13:54 libmap.a
-rwxr-xr-x 1 gisweb wheel 641 Sep 20 08:33 libttf.la
-rwxr-xr-x 1 gisweb wheel 757868 Sep 20 08:33 libttf.so.4.0
And so, dear reader, comes the big question--why does the formerly triumphant
mapserv no longer find the libraries that were once so beloved?
Could a change to other libraries in the /usr/lib or /usr/local/lib directories
have shifted the tenuous alliances between formerly complimentary open-source
products?
Flashes of brillance welcomed with open arms.
Jonathan W. Lowe
www.giswebsite.com
More information about the MapServer-users
mailing list