添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

一个linux下的可执行文件的ldd:

        linux-vdso.so.1 =>  (0x00007ffc40f98000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa1159c4000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fa1157bc000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fa1155b8000)
        libaio.so.1 => /lib64/libaio.so.1 (0x00007fa1153b6000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007fa115144000) 
        libmysqlclient.so.16 => /usr/lib64/mysql/libmysqlclient.so.16 (0x00007fa114db6000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fa114b7f000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fa114877000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fa114575000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fa1141a8000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fa115be0000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa113f92000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fa113b2f000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fa1138e2000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fa1135f9000) 
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fa1133f5000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fa1131c2000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fa112fac000)
        libssl.so.1.0.0 => not found
        libcrypto.so.1.0.0 => not found
        libfreebl3.so => /lib64/libfreebl3.so (0x00007fa112da9000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fa112b99000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fa112995000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fa11277c000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fa112555000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fa1122f3000) 

缺少动态库libssl.so.1.0.0,libcrypto.so.1.0.0

在安装了这两个动态库后,再ldd查看,发现这两个动态库的依赖不显示了:

        linux-vdso.so.1 =>  (0x00007ffe16f68000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7ef7529000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f7ef7321000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f7ef711d000)
        libaio.so.1 => /lib64/libaio.so.1 (0x00007f7ef6f1b000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007f7ef6ca9000)
        libmysqlclient.so.16 => /usr/lib64/mysql/libmysqlclient.so.16 (0x00007f7ef691b000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f7ef66e4000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7ef63dc000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f7ef60da000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f7ef5d0d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7ef7745000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7ef5af7000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f7ef5694000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f7ef5447000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f7ef515e000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f7ef4f5a000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f7ef4d27000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f7ef4b11000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007f7ef490e000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f7ef46fe000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f7ef44fa000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f7ef42e1000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f7ef40ba000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f7ef3e58000)

很奇怪的问题,不知道是什么原因