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 am trying to install GCC on Mac. I only need the C standard and whatever is required to compile bison. I see a 2.5GB file that will take me all day. I can't start it today so maybe tomorrow. Is there a smaller option?

I am using Mac OS X 10.5.8.

share|improve this question

May be you can find some binaries online but downloading XCode from Apple is really the best option (even if the file is a bit huge)

share|improve this answer

Your Mac installation disks have a version of XCode on them that you can install, though it's likely not as new as what you can download.

Without knowing what you need to compile bison for, I don't know if a system like homebrew is adequate or not, but it may be something you can look into.

share|improve this answer

Building GCC on MacOS X has usually not worked for me (I think I got it done once; I've compiled it on Solaris many times) - so XCode is the way to go.

share|improve this answer

I know this is an old question, but I just ran into this issue, and wanted to share what I found out. If you install macports then you can pull an entire gnu build-essential suite from the repo's.

share|improve this answer
just a glitch - macports requires XCode installed – kellogs Jan 13 '13 at 19:15

Though it does not answer the question for 10.5, for next versions (10.6 & 10.7 at the moment of writing) there is a GCC installer available here ( found it via stackoverflow ).

I think it may be useful for those who will look for the same for the current versions of OS X.

I did try it myself and am using it along with Homebrew to compile and install unix tools. ( Sometimes it needs some LSF-style manual tweaking, but hey -- nobody's perfect ) )

share|improve this answer

If you have XCode installed, In XCode, go to the XCode menu, followed by Preferences, Downloads, and then click on the Install button.

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.