Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Jan 20 '11 at 5:28

This question came from our site for professional and enthusiast programmers.

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

2 Answers 2

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

share|improve this answer

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.

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.