安装"make"在Mac上 [英] installing "make" on Mac

查看:1403
本文介绍了安装"make"在Mac上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用本教程在Mac上安装Memcached: http://tugdualgrall.blogspot.de /2011/11/installing-memcached-on-mac-os-x-and.html 但是当我尝试./configure 它说: 配置:错误:在$ PATH中找不到可接受的C编译器 当我尝试使它说: 制作 sh:make:找不到命令 sh-3.2#yum install make sh:yum:找不到命令 sh-3.2#apt-get安装make sh:apt-get:找不到命令

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

我必须提到我有Xcode,但是它仍然无法正常工作. 我真的是Mac上的新手,所以请考虑到这一点:) 我将衷心感谢您的帮助 谢谢!

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!

推荐答案

如果您使用的是Xcode 4.3或更高版本,则默认情况下不会安装命令行工具(例如make).在Xcode首选项中,转到下载"选项卡,然后在组件"下按命令行工具"旁边的安装"按钮.成功下载并安装命令行工具之后,还应该在终端中键入以下命令,以确保所有Xcode命令行工具都已切换为使用4.3版本:

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

一旦一切都成功安装,您应该在/usr/bin中看到make和其他命令行开发人员工具.

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

这篇关于安装"make"在Mac上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆