Posts tagged “ldd”.

ldd equivalent under Mac OS X

You can use the object file displaying tool – otool. The ldd equivalent otool parameter is -L:

-L print shared libraries used

Example:
$ otool -L ~/bin/wget
/Users/cbredi/bin/wget:
/usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.1)

If you do not have the otool command, make sure Xcode is properly installed.