Libgd.so.2 -> Library not found
LUCAS BERNAL, JOSE MIGUEL
josem.lucas2 at CARM.ES
Thu Jan 31 05:13:05 PST 2008
Hello,
-- Edit /etc/ld.so.conf
-- Add a line with the library path "/example/lib"
-- Run "ldconfig"
I hope to help you.
Best Regards;
________________________________
De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Seethaler, Lyle [USA]
Enviado el: miércoles, 30 de enero de 2008 17:42
Para: MAPSERVER-USERS at LISTS.UMN.EDU
Asunto: [UMN_MAPSERVER-USERS] Libgd.so.2 -> Library not found
As a result of restrictions on the container I am working I can not build libraries into the /usr/lib/ directories. As a result the libraries that I built for MapServer (gd, curl, etc) are in a different location. I specify these locations in the configuration file and the makefile lists these locations correctly and runs fine. However once I test the mapserv executable it does not see these libraries. Am I missing a parameter for setting these library locations into the cgi? Should i be setting an environment variable with these locations? Any help in this issue is much appreciated.
Thanks in advance!
Lyle
# mapserv
ld.so.1: mapserv: fatal: libgd.so.2: open failed: No such file or directory
# ldd mapserv
libgd.so.2 => (file not found)
libjpeg.so.62 => /usr/lib/libjpeg.so.62
libfreetype.so.6 => /usr/sfw/lib/libfreetype.so.6
libpng.so.3 => /usr/lib/libpng.so.3
libz.so.1 => /usr/lib/libz.so.1
libXpm.so.4 => /usr/lib/libXpm.so.4
libX11.so.4 => /usr/lib/libX11.so.4
libtiff.so.3 => /usr/lib/libtiff.so.3
libproj.so.0 => (file not found)
libgdal.so.1 => (file not found)
libpq.so.5 => (file not found)
librt.so.1 => /usr/lib/librt.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libcurl.so.4 => (file not found)
libssl.so.0.9.7 => /usr/sfw/lib/libssl.so.0.9.7
libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7
libldap.so.5 => /usr/lib/libldap.so.5
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libclntsh.so.10.1 => (file not found)
libgeos_c.so.1 => (file not found)
libpthread.so.1 => /usr/lib/libpthread.so.1
libxml2.so.2 => /usr/lib/libxml2.so.2
libm.so.2 => /usr/lib/libm.so.2
libstdc++.so.6 => /usr/sfw/lib/libstdc++.so.6
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libaio.so.1 => /lib/libaio.so.1
libmd5.so.1 => /lib/libmd5.so.1
libsasl.so.1 => /usr/lib/libsasl.so.1
libnspr4.so => /usr/lib/mps/libnspr4.so
libplc4.so => /usr/lib/mps/libplc4.so
libnss3.so => /usr/lib/mps/libnss3.so
libssl3.so => /usr/lib/mps/libssl3.so
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libthread.so.1 => /lib/libthread.so.1
libsoftokn3.so => /usr/lib/mps/libsoftokn3.so
libplds4.so => /usr/lib/mps/libplds4.so
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libbsm.so.1 => /lib/libbsm.so.1
libsecdb.so.1 => /lib/libsecdb.so.1
libtsol.so.2 => /lib/libtsol.so.2
libcmd.so.1 => /lib/libcmd.so.1
/platform/SUNW,Sun-Fire-480R/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-480R/lib/libmd5_psr.so.1
/usr/lib/mps/cpu/sparcv8plus/libnspr_flt4.so
Example taken from Makefile:
GDFONT_OBJ=gd-1.2/gdfontt.o gd-1.2/gdfonts.o gd-1.2/gdfontmb.o gd-1.2/gdfontl.o gd-1.2/gdfontg.o
GD_INC= -I/var/usrtmp/local/include
GD_LIB= -L/var/usrtmp/local/lib -lgd -L/usr/lib -ljpeg -lfreetype -lpng -lz -lXpm -lX11
GD= -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
GD_STATIC =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080131/01ce226a/attachment.htm>
More information about the MapServer-users
mailing list