Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I find it really hard to believe there is not a simple solution to install GCC on Mac without having to download and install more than 1 GB+ of Xcode. I found a site that helps reduce the amount of programs to be installed in the Xcode installation, but it's still a relatively large amount of disk space needed just to get this compiler up and running.

I'm looking for a solution WITHOUT Xcode.

share|improve this question

migrated from Oct 10 '12 at 9:01

This question came from our site for professional and enthusiast programmers.

So your only issue is the size of the download? – trojanfoe Oct 10 '12 at 7:51
yes, I have several Mac computers that I only need *nix related tools on. I don't develop with xcode, and don't care for it's tools / ide. I understand that the issue is with program dependencies, but until a second ago, I wasn't able to find any solutions. – Eric Leroy Oct 10 '12 at 7:56
I've used in the past. – juanchopanza Oct 10 '12 at 8:04
Doesn't mac ports rely on xcode also? – Eric Leroy Oct 10 '12 at 8:08
Loki, I don't think you get it. The whole point of the question is to install it without xcode. I don't like it. The thought of it taking up drive space irritates me. – Eric Leroy Oct 10 '12 at 8:11
up vote 3 down vote accepted

OSX GCC Installer

Downloading and installing the massive Xcode installer is a huge hassle if you just want GCC and related tools.

The osx-gcc-installer allows you to install the essential compilers from either pre-built binary packages or helps you create your own installer.

share|improve this answer
Since then superseded by Apple's official Command Line Tools for Xcode: – Arto Bendiken Mar 19 '13 at 23:24

You can install just the Xcode Command Line Tools, which includes a GCC Compiler, through Terminal. All you have to do is enter gcc into the Terminal and it should prompt you to install; only took a few minutes for me the other day.

Check out this tutorial for the full instructions:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.