[Mapserver-users] libpq.so.2 vs. libpq.so.3 problems
Dylan Keon
keon at nacse.org
Mon Jan 12 16:19:25 PST 2004
When MapServer is compiled with PostGIS support, does it require
libpq.so.2 even if libpq.so.3 is available? I replaced Postgres 7.2.3
with 7.4.1 today (along with the current PostGIS and GEOS builds),
recompiled MapServer to point to the new pg_config, and get the
following error:
# ./mapserv -v
./mapserv: error while loading shared libraries: libpq.so.2: cannot open
shared object file: No such file or directory
I was able to restore the old libpq.so.2 and currently have it sitting
alongside libpq.so.3. In that case ./mapserv -v works:
./mapserv -v
MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE fine:
Is there any problem with using both libraries side-by-side? I just
don't understand why MapServer needs both:
ldd ./mapserv
libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40022000)
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40073000)
libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x400bd000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x400f0000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400ff000)
libpdf.so.1 => /usr/local/lib/libpdf.so.1 (0x401dd000)
libproj.so.0 => /usr/local/lib/libproj.so.0 (0x4026b000)
libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x4029a000)
libm.so.6 => /lib/i686/libm.so.6 (0x40547000)
libdl.so.2 => /lib/libdl.so.2 (0x40569000)
libpq.so.3 => /usr/local/lib/libpq.so.3 (0x4056c000)
libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x40582000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x405a4000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x405f5000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
libpq.so.2 => not found
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x406a7000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x406af000)
libresolv.so.2 => /lib/libresolv.so.2 (0x406dd000)
libnsl.so.1 => /lib/libnsl.so.1 (0x406ef000)
libz.so.1 => /usr/lib/libz.so.1 (0x40705000)
libssl.so.2 => /lib/libssl.so.2 (0x40713000)
libcrypto.so.2 => /lib/libcrypto.so.2 (0x40743000)
Thanks,
Dylan
More information about the MapServer-users
mailing list