Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash: make: command not found

I am in a directory with a Makefile, but can't use I cannot use make

bash-3.2$ make
bash: make: command not found

How do I fix this?

like image 661
Wex Avatar asked Feb 03 '13 09:02

Wex


3 Answers

Make, among other things, is available through Apple's Command Line Tools. Install Command Line Tools through XCode by going to XCode->Preferences->Downloads

You can also download Command Line Tools without installing XCode from the Apple Developer site: https://developer.apple.com/opensource/

like image 177
Wex Avatar answered Oct 17 '22 02:10

Wex


If you have XCode installed then @Wex's answer will get you going quickly, otherwise you don't have to install Xcode to get the command-line tools you seek.

Check this out: https://github.com/kennethreitz/osx-gcc-installer

You will want to install this one on Lion: https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg

Good luck!

like image 4
PeppyHeppy Avatar answered Oct 17 '22 02:10

PeppyHeppy


I had the same problem. I was about to download and install command line tools until I saw in the download window that you can just use:

xcrun make
like image 3
Andor Avatar answered Oct 17 '22 02:10

Andor