Snow_Mac
Snow_Mac

Reputation: 5797

How do I get GCC on OS X Lion?

I recently bought a new Mac and did a time machine restore of my old mac & updated the xCode version to the latest version. After the move I have lost the ability to use Make and GCC; saying these commands are unavailable. I use Make and GCC to develop for homework assignments for classes that I later SCP up to a Linux box at school then run from there.

How do I get GCC and Make for Mac OS Lion? I've seen some articles on how to install via source via compiling but they automatically assume you have GCC installed, which I do not.

Please help!

Upvotes: 2

Views: 2276

Answers (5)

mgw123
mgw123

Reputation: 1

Install homebrew from here then in zsh type brew install gcc then, gcc --version and you're good to go.

Upvotes: 0

Christoph Zenger
Christoph Zenger

Reputation: 71

  1. You have to download Xcode from the app store
  2. You have to run the Install Xcode application
  3. Within Xcode go to Preferences -> Downloads and click install for the command line tools

You'll find the tools at the usual place, for example /usr/bin/make.

See also post on superuser.com

Upvotes: 2

Craig B.
Craig B.

Reputation: 121

Unfortunately justing updating the path (which I found not in any /Developer but actually in /Applications/Xcode.app) doesn't solve other issues like missing manpages. Apple has released a new developer download for command line developer tools. Either go directly to Apple's developer page, for find a little more info and the link here.

Upvotes: 0

shadyabhi
shadyabhi

Reputation: 17244

gcc should be in /Developer/usr/bin/. Check there.

Upvotes: 5

Correa
Correa

Reputation: 423

You can access the App Store and download XCode. It's free. It will give you llvm (compiler), make and related tools.

Upvotes: 0

Related Questions