5

Please, help! Does anybody faced this problem?

-bash: make: command not found
user1090944
  • 445
  • 1
  • 8
  • 16
  • 1
    duplicate of [Where can I find "make" program for Mac OS X Lion?](http://stackoverflow.com/questions/6767481/where-can-i-find-make-program-for-mac-os-x-lion) – phihag Feb 16 '12 at 18:26

3 Answers3

6

make, like most developer tools, comes with Xcode. When I upgraded, OSX kept the tools, but if that's not the case for you, just download and install the Lion version of Xcode.

If you need a gcc (Lion's Xcode 4.2+ provides only LLVM) and / or you don't want to install the huge Xcode package, use the osx-gcc-installer.

flyx
  • 35,506
  • 7
  • 89
  • 126
  • I had old Xcode before updating. I downloaded 4.3 version of Xcode, but make does not work anyway. – user1090944 Feb 16 '12 at 21:05
  • make should be located in `/usr/bin/make`, try that. If it doesn't work, Xcode has not been installed correctly. If it does work, but `make` does not, something's wrong with your PATH. (If you downloaded Xcode from the Mac AppStore, remember that you have to install it after downloading.) – flyx Feb 16 '12 at 21:13
  • just 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-- Feb 19 '12 at 05:36
  • 11
    Latest Xcode (4.3+) does not install command line tools by default. Previous version did. However it is very easy to install them by going Xcode > Preferences then from Downloads tab install Command Line Tools (requires logon with Apple Developer ID) – Tomasz Błachowicz Mar 12 '12 at 21:33
  • Just wanted to mention that after going Xcode -> Preferences -> Downloads, you have to click on the Components tab to find Command Line Tools. (For some reason, mine was on Documentation by default and it took me a while to figure it out.) – Joyce Aug 08 '12 at 02:29
6

Actually, you can now download the Mac OSX command line tools as a seperate package without downloading Xcode!

https://developer.apple.com/downloads/index.action (Command Line Tools for Xcode - February 2012)

Revell
  • 723
  • 2
  • 8
  • 22
0

How I can install gcc 4.7 for Mountain Lion? 4.2 is pretty stable, but 4.7 gives some more speed for Ruby.

I tested it under Ubuntu and it was awesome.

sharipov_ru
  • 643
  • 4
  • 11