Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing "make" on Mac

I'm trying to install Memcached on Mac using this tutorial: http://tugdualgrall.blogspot.de/2011/11/installing-memcached-on-mac-os-x-and.html but when I try ./configure it says: configure: error: no acceptable C compiler found in $PATH when I try make it says: make sh: make: command not found sh-3.2# yum install make sh: yum: command not found sh-3.2# apt-get install make sh: apt-get: command not found

I must mention that I have Xcode but it's still not working. I'm really new on Mac so please take that into consideration :) I would really appreciate your help Thanks!

like image 630
Baseem Najjar Avatar asked Jul 15 '12 18:07

Baseem Najjar


People also ask

Can you use make on Mac?

To specify a number of files with various paths and to save this information for multiple compilations, you can use a makefile. On Linux and Mac OS systems: To use a makefile to compile your input files, make sure that /usr/bin and /usr/local/bin are in your path.


1 Answers

If you have Xcode 4.3 or newer the command line tools, such as make, are not installed by default. In Xcode preferences go to the "Downloads" tab and under "Components" push the "Install" button next to "Command Line Tools". After you have successfully downloaded and installed the command line tools you should also type the following command in the Terminal to make sure all your Xcode command line tools are switched to use the 4.3 versions:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 

Once everything is successfully installed you should see make and other command line developer tools in /usr/bin.

like image 66
torrey.lyons Avatar answered Sep 20 '22 06:09

torrey.lyons