Loading...
 
Skip to main content

NoLddOnOSX

Other *NIX systems have the ldd(1) tool to determine shared library dependencies of programs.

As MacOS X has to deal with several executable formats (Mach-O, fat binaries), there's an own tool for this task (and some more), otool (1).

To just get output similar to ldd, use otool -L, as in the following example:

> otool -L `which csh`
/bin/csh:
/usr/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.0.0)