Replacing LDD with otool on Mac OS X
- Author: Liu Da-poechant (Zhong Chao)
- Email: zhongchao. USTC # gmail.com (#-> @)
- Blog: blog.csdn.net/poechant
- Date: May 13Th, 2012
Commands frequently used in Linux on Mac OS Xldd, There will be the following prompt:
Michael:nginx michael$ ldd sbin/nginx-bash: ldd: command not found
If you ask melddI am not impatient either.lddYeslist dynamic dependencies(I guess ). Use on Mac OS Xotool -LTo replacelddSimple:
Michael:logs michael$ otool -L ../sbin/nginx
../sbin/nginx:
/usr/lib/libpcre.0.dylib (compatibility version 1.0.0, current version 1.1.0)
/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 44.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
Enjoy it!
-
For more information, see blog.csdn.net/poechant.
-