如何在Mac上安装make和gcc? [英] How to install make and gcc on a mac?
问题描述
我想在我的MacBook Air上安装Eclim(2011版)。
但是在安装过程中我遇到了一些问题。
它告诉我,我没有安装make和gcc。
我试图为它寻找解决方案
,但所有解决方案都在讨论如何使用XCode中。
实际上,我安装了XCode。
但是我仍然无法安装Eclim,因为没有安装make和gcc。
如何安装它们以便我可以安装Eclim?
更新版本:
命令行版本现在可以直接安装从命令行本身;
- 打开终端(它位于应用程序/实用程序中)
- 在终端窗口中,运行命令
xcode-select --install
- 在弹出的窗口中,单击
安装
并同意服务条款。
安装完成后,命令行实用程序应该设置属性。
旧版本:
足够容易地安装最新的XCode版本不会自动安装命令行工具。在未自动安装时安装命令行工具;
这将安装命令行工具并使它们可以从常规命令行。
I want to install Eclim on my macbook air (2011 version). But there are some problems I faced during the installation. It told me that I did not install make and gcc.
I tried to find the solution for it but all solutions are talking about using XCode. In fact, I installed the XCode. But I still cannot install Eclim because there are no make and gcc installed.
How can I install them so that I can install Eclim?
Update for newer versions:
The command line versions can now be installed straight from the command line itself;
- Open "Terminal" (it is located in Applications/Utilities)
- In the terminal window, run the command
xcode-select --install
- In the windows that pops up, click
Install
, and agree to the Terms of Service.
Once the installation is complete, the command line utilities should be set up property.
Older versions:
Installing recent XCode versions confusingly enough does not automatically install the command line tools. To install the command line tools when they're not automatically installed;
- Start XCode.
- Go to XCode/Preferences.
- Click the "Downloads" tab.
- Click "Components".
- Click "Install" on the command line tools line.
That will install the command line tools and make them accessible from a regular command line.
这篇关于如何在Mac上安装make和gcc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!