Saturday, August 25, 2012

otool: shows the shared libraries of a file (like ldd)

In OSX, the command to show the shared libraries that a binary uses is:
   /usr/bin/otool -L  binary_file

In Linux and Solaris the equivalent command is ldd, and I am used to it,
so I have this alias in my ~/.bash_profile  file:
   alias ldd="/usr/bin/otool -L "

No comments:

Post a Comment