I am in a directory with a Makefile but cannot use. I can not usemake
make
bash-3.2$ make bash: make: command not found
How to fix it?
Make, among other things, available through the Apple Command Line Tools. Install the command line tools through Xcode by going toXCode->Preferences->Downloads
XCode->Preferences->Downloads
You can also download command-line tools without installing Xcode from the Apple Developer website: https://developer.apple.com/opensource/
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
!
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