Using 'make' on OS X

Alex picture Alex · Sep 24, 2009 · Viewed 124.1k times · Source

I have a MacBook Pro that I'm trying to do some development on.

I have a program I want to build, and when I went to use make to build it, I got a "command not found" error. I did some googling and Stack Overflow searches and it doesn't look like this is a common problem. Why don't I have make installed and how do I get it?

I'm extra confused, because I know I used it relatively recently (in the past month or so) when I was on this laptop.

Answer

Daniel picture Daniel · Apr 24, 2012

For those of you who get to this page using Xcode 4.3 and Lion, the command line tools are no longer bundled by default, and there is no /Developer anymore. To install them, open Xcode, go to Preferences -> Downloads -> Components -> Command Line Tools. This should install make, gcc etc.