linux ldd命令 详解

 
ldd本身不是一个程序,而仅是一个shell脚本:ldd可以列出一个程序所需要得动态链接库(so linux扩展库)
 
ldd 命令位置:
 
which ldd
/usr/bin/ldd

例子:(列出nginx运行所需动态扩展列表)
 
ldd $(which /usr/local/nginx/sbin/nginx)

linux-vdso.so.1 => (0x00007fff4d5ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fea7e357000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fea7e120000)
libpcre.so.1 => not found
libz.so.1 => /lib64/libz.so.1 (0x00007fea7df09000)
libc.so.6 => /lib64/libc.so.6 (0x00007fea7db76000)
/lib64/ld-linux-x86-64.so.2 (0x00007fea7e57d000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fea7d913000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fea7d70f000)

0 个评论

要回复文章请先登录注册