installing “make” on Mac

前端 未结 2 1927
别跟我提以往
别跟我提以往 2020-12-24 06:46

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

相关标签:
2条回答
  • 2020-12-24 07:10

    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.

    0 讨论(0)
  • 2020-12-24 07:15

    From torrey.lyons's answer, in Xcode --> Preferences --> Downloads it says under Command Line Tools:

    Before installing, note that from within Terminal you can use the XCRUN tool to launch compilers and other tools embedded within the Xcode application. Use the XCODE-SELECT tool to define which version of Xcode is active. Type "man xcrun" from within Terminal to find out more.

    Therefore, I was able to run the make tool with the command xcrun make.

    0 讨论(0)
提交回复
热议问题