ldd コマンドで”コマンド”や”アプリケーション”がどんなライブラリを

ダイナミックリンクしているか調べる。

 

[root@localhost xinit]# /usr/bin/ldd /usr/local/apache2/bin/httpd
        linux-gate.so.1 =>  (0x00c3a000)
        libm.so.6 => /lib/libm.so.6 (0x00819000)
        libaprutil-1.so.0 => /usr/local/apache2/lib/libaprutil-1.so.0 (0x0086d000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x008b1000)
        libexpat.so.0 => /lib/libexpat.so.0 (0x00a4f000)
        libapr-1.so.0 => /usr/local/apache2/lib/libapr-1.so.0 (0x00110000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00133000)
        librt.so.1 => /lib/librt.so.1 (0x02a21000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x03396000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00a78000)
        libdl.so.2 => /lib/libdl.so.2 (0x00840000)
        libc.so.6 => /lib/libc.so.6 (0x006e4000)
        /lib/ld-linux.so.2 (0x006c7000)

[root@localhost xinit]# /usr/bin/ldd /usr/bin/mysql
        linux-gate.so.1 =>  (0x00251000)
        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x02ee5000)
        libmysqlclient.so.15 => /usr/lib/mysql/libmysqlclient.so.15 (0x0085b000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x03396000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00d27000)
        libssl.so.6 => /lib/libssl.so.6 (0x00680000)
        libcrypto.so.6 => /lib/libcrypto.so.6 (0x0053f000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00846000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0042c000)
        libm.so.6 => /lib/libm.so.6 (0x00819000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00d54000)
        libc.so.6 => /lib/libc.so.6 (0x006e4000)
        libdl.so.2 => /lib/libdl.so.2 (0x00840000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00dde000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00d67000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x00d62000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00518000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00d3f000)
        /lib/ld-linux.so.2 (0x006c7000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00df9000)
[root@localhost xinit]#

Comments are closed.

Post Navigation