Snow Leopard: make command not found, even though XCode is installed?

9

1

So I've installed XCode on Snow Leopard. Why am I getting messages like this:

sudo: make: command not found

What do I need to do to resolve this issue?

Solution:

I'm not sure what happened, but I was able to fix the problem by downloading the newest version of XCode and reinstalling it. Now I can see that I have make installed correctly.

$ which make
/usr/bin/make

Andrew

Posted 2010-06-21T23:23:17.483

Reputation: 11 982

Answers

9

When you installed the Apple Developer tools, did you also install the "Unix Development" package? From the Xcode 3.2.2 developer tools for Mac SDK 10.6 and iPhone SDK 3.2 README file:

Installation

The Xcode and iPhone SDK installer provides six options for configuring the installation from the “Customize...” button:

...

  • UNIX Development. Command-line tools used for UNIX-based development. Its components are always placed in /usr - only one version installed at a time.

I believe that is what triggers putting the utilities into /usr/bin ...

Peter Murray

Posted 2010-06-21T23:23:17.483

Reputation: 827

2just to help lion users with this issue. After installing XCode (4.3.3 at time of writing), inside Xcode -> Developer Tools -> More Developer Tools... it takes you to apple developer website where after a few hoops you are able to search for "make" or "gcc" and you can download "Command Line Tools for XCode" – w-- – 2012-02-19T05:34:03.347

11

Go to Preferences in Xcode, choose Downloads and install Command Line Tools.

enter image description here

Kristoffer K

Posted 2010-06-21T23:23:17.483

Reputation: 211

I accidentally put in the wrong credentials, and now it won't let me change my original credentials. It just says I'm not registered every time I try and click install. – Trip – 2012-03-29T22:54:23.850

This XCode screen is taken on Lion, the question was about Snow Leopard on which XCode version is completely different. – Ain – 2012-05-06T16:04:47.760

1

I ended up having a similar problem in which the make command had mysteriously disappeared from my Mac after upgrading. I upgraded from Snow Leopard to Lion. I also upgraded from Xcode 4.2 to 4.3.

However, after the installations seemingly went fine make was nowhere to be found. It seems that installing the new Xcode just wiped it out.

I ended up using the GCC installer from the brilliant Kenneth Reitz, which worked perfectly: https://github.com/kennethreitz/osx-gcc-installer

Bijan

Posted 2010-06-21T23:23:17.483

Reputation: 111

Chances are, you didn't install the command line tools for Xcode.

– Daniel Beck – 2012-02-17T16:44:54.037

0

Make sure your PATH contains the directory that includes make.

JRobert

Posted 2010-06-21T23:23:17.483

Reputation: 6 128

which directory would that be? – Andrew – 2010-06-21T23:28:19.997

@misbehavens /usr/bin/ – Joseph – 2010-06-21T23:58:39.987