[CentOS] ldd question on CentOS 6.8 (64bit)
Leon Fauster
leonfauster at googlemail.com
Thu Jun 7 13:54:21 UTC 2018
> Am 07.06.2018 um 15:43 schrieb ejm <mansky at mindspring.com>:
>
> Hi all,
>
> Will ldd display the paths to different libraries depending on their locations?
>
> I'm trying to build libxml2 version 2.9.6 in /usr/local with a newer version of zlib (1.2.8) than what are in the system folders for CentOS 6.8.
>
> I get the following output from ldd:
>
> $ ldd ./libxml2.so
> ./libxml2.so: /lib64/libz.so.1: version `ZLIB_1.2.3.3' not found (required by ./libxml2.so)
> linux-vdso.so.1 => (0x00007ffeb1789000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00007fce9e824000)
> libz.so.1 => /lib64/libz.so.1 (0x00007fce9e60e000) <-- I expected /usr/local/lib here
> libm.so.6 => /lib64/libm.so.6 (0x00007fce9e389000)
> libc.so.6 => /lib64/libc.so.6 (0x00007fce9dff5000)
> /lib64/ld-linux-x86-64.so.2 (0x0000003d52a00000)
What about:
LD_LIBRARY_PATH=/usr/local/lib ldd ./libxml2.so
--
LF
More information about the CentOS
mailing list