tags:

views:

2713

answers:

5
+4  Q: 

Using make on OSX

I have a macbook 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 google and SO 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.

+5  A: 

You will have to install the "Developer Tools" that are provided as optional packages in OS X installation disks.

ayaz
+10  A: 

Have you installed the Apple developer tools? What happens if you type gcc -v ?

It look as if you do not have downloaded the development stuff. You can get it for free (after registration) from http://developer.apple.com/

Regards Friedrich

Friedrich
I know I had this installed before. The only thing I can think of that happened between now and the last time I used it is installing Snow Leopard. In any case, reinstalling the development stuff. Thanks.
Alex
Yes, Alex. Upgrading to SL seems to wipe out a number of development tools, including gcc and make. For me, I upgraded XCode to 3.2 and along with that, installed the development tools.
ayaz
+1  A: 

I agree with the other two answers: install the Apple Developer Tools.

But it is also worth noting that OS X ships with ant and rake.

Harold L
A: 

If you don't want to install the full Xcode suite, then the MacPorts is a good option. It's a package management solution that gives you access to ports of many common Linux utilities on the Mac.

Ludvig A Norin
+1  A: 

In addition, if you have migrated your user files and applications from one mac to another, you need to install Apple Developer Tools all over again. The migration assistant does not account for the developer tools installation.

Nicolaj Schweitz