'How to install 'make' and GCC on a Mac
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 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?
Solution 1:[1]
With Homebrew installed on my Mac, the installation was as simple as running the command
brew install make
It might require root permissions.
Solution 2:[2]
You can also use this standalone GCC installed (got from Xcode).
Solution 3:[3]
With modern Xcode (4.3) you will need to run the GUI and have it install the command line tools. I'll quote from the MacPorts ProblemHotList because I have it bookmarked:
Xcode 4.3 does not include a fully working set of command line tools by default. Nothing will build without it, despite the fact that
xcode-selectandwhich makemay return correct values.You must open Xcode, go to Preferences, and download this component from the Downloads section. You will require an Apple ID to download the component.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Peter Mortensen |
| Solution 2 | Rafael Kassner |
| Solution 3 | geekosaur |
