查找ldd搜索路径


10

如何找到的搜索路径ldd?假设ldd退货

[mahmood@dhcppc2 bin]$ ldd /home/mahmood/amd64-linux/lib/scsi-bus.so
        linux-vdso.so.1 =>  (0x00007fffc27c7000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ffb13a25000)
        libstdc++.so.5 => not found
        libm.so.6 => /lib64/libm.so.6 (0x00007ffb137a0000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007ffb13589000)
        libc.so.6 => /lib64/libc.so.6 (0x00007ffb131f6000)
        /lib64/ld-linux-x86-64.so.2 (0x00000037d6000000)

我想知道默认位置是ldd什么?我的意思是/lib64或者/usr/lib还是/usr/lib64....?

Answers:


13

LDCONFIG命令将显示你这些路径...

ldconfig -v | grep -v ^$'\t'

路径在/etc/ld.so.conf和中设置/etc/ld.so.conf.d


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.