Trying to use otool -L in place of ldd, but it says it can't be found... As root, even running a locate otools in terminal shows nothing... Is it not on Snow Leopard? Does anyone know where it is?

  • 3
    You need to install the developer tools to get access to otool. Once you've installed the developer tools (must check UNIX/system tools) it will be at /usr/bin/otool as well as /Developer/usr/bin/otool (or whatever place you installed the tools) – Jason Coco Jan 20 '11 at 5:24
  • Also, these kinds of questions really belong on superuser.stackoverflow.com since they're more related to 'how do I set up my system' than 'how do I program such&such' or 'how do I achieve such and such result' etc. – Jason Coco Jan 20 '11 at 5:26
  • 1
    @Jason: Seems to me that otool is pretty clearly a "software tool commonly used by programmers", which makes it on-topic here. – Cody Gray Jan 20 '11 at 5:28
  • @Cody Gray: I'd say it's one of those gray areas... yes, it's definitely a dev tool, but he's not asking about how to use it or even how to make it work right, he's asking where to find it and how to install it, which is more setup/superuser IMHO, but that's just my opinion anyway. – Jason Coco Jan 20 '11 at 5:34

You need to install the Apple Developer Tools to make otool available. You can register to download them here for free (no need to become a "Mac Developer Program" member).

After you've installed the Developer Tools, otool is in /usr/bin (which is usually in your $PATH).

No need to upvote this post: I just repeated information already in the comments.

  • 1
    Any way to get otool without downloading over a gig of other stuff that I don't need? – Chris Harrison Jul 25 '13 at 5:45

/Developer/usr/bin/otool is one place it's usually found. Also see /usr/bin/otool

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy