Bash: make: command not found

I am in a directory with a Makefile but cannot use. I can not usemake

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

How to fix it?

+5
source share
3 answers

Make, among other things, available through the Apple Command Line Tools. Install the command line tools through Xcode by going toXCode->Preferences->Downloads

You can also download command-line tools without installing Xcode from the Apple Developer website: https://developer.apple.com/opensource/

+12
source

If you have Xcode installed, @Wex's answer will help you quickly, otherwise you will not need to install Xcode to get the necessary command line tools.

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

Lion: https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg

!

+4

I had the same problem. I was going to download and install command line tools until I see a download window, which you can simply use:

xcrun make
+3
source

All Articles