强大的ldd
在服务器上运行tshark,
报错ld.so.1: tshark: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by file /usr/local/lib/libgnutls.so.26)
如何定位是哪里的问题呢?
ldd /usr/bin/tshark
会列出调用的相关的lib库
root@Tydeus # ldd /usr/local/bin/tshark
libwiretap.so.1 => /usr/local/lib/libwiretap.so.1
libwireshark.so.1 => /usr/local/lib/libwireshark.so.1
libwsutil.so.1 => /usr/local/lib/libwsutil.so.1
libpthread.so.1 => /lib/libpthread.so.1
libthread.so.1 => /lib/libthread.so.1
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
libm.so.2 => /lib/libm.so.2
libpcap.so.1 => /usr/local/lib/libpcap.so.1
libnsl.so.1 => /lib/libnsl.so.1
libc.so.1 => /lib/libc.so.1
libz.so => /usr/lib/libz.so
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0
librt.so.1 => /lib/librt.so.1
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libintl.so.8 => /usr/local/lib/libintl.so.8
libsec.so.1 => /lib/libsec.so.1
libsocket.so.1 => /lib/libsocket.so.1
libadns.so => /usr/local/lib/libadns.so
libgcrypt.so.11 => /usr/lib/libgcrypt.so.11
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0
libgnutls.so.26 => /usr/local/lib/libgnutls.so.26
libcrypto.so.1.0.0 => /usr/local/ssl/lib/libcrypto.so.1.0.0
libGeoIP.so.1 => /usr/local/lib/libGeoIP.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libaio.so.1 => /lib/libaio.so.1
libavl.so.1 => /lib/libavl.so.1
libtasn1.so.3 => /usr/local/lib/libtasn1.so.3
libc.so.1 (SUNW_1.22.7) => (version not found)
libdl.so.1 => /lib/libdl.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
pvs /lib/libc.so.1
root@Tydeus # pvs /lib/libc.so.1
libc.so.1;
SUNW_1.23;
SUNW_1.22.6;
SUNW_1.22.5;
SUNW_1.22.4;
SUNW_1.22.3;
SUNW_1.22.2;
SUNW_1.22.1;
SUNW_1.22;
SUNW_1.21.3;
SUNW_1.21.2;
SUNW_1.21.1;
SUNW_1.21;
SUNW_1.20.4;
SUNW_1.20.1;
SUNW_1.20;
SUNW_1.19;
SUNW_1.18.1;
SUNW_1.18;
SUNW_1.17;
SUNW_1.16;
SUNW_1.15;
SUNW_1.14;
SUNW_1.13;
SUNW_1.12;
SUNW_1.11;
SUNW_1.10;
SUNW_1.9;
SUNW_1.8;
SUNW_1.7;
SUNW_1.6;
SUNW_1.5;
SUNW_1.4;
SUNW_1.3;
SUNW_1.2;
SUNW_1.1;
SUNW_0.9;
SUNW_0.8;
SUNW_0.7;
SYSVABI_1.3;
SUNWprivate_1.1;
的确是没有SUNW_1.22.7这个版本,升级libc库