Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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'd like to spend some time aside from the IDE for a bit and use command line gcc, g++ compilers.

When i use my terminal, they however, can't be found.

How can i install them?

I honestly am surprised why these two don't come standard.

Please let me know.

share|improve this question
up vote 4 down vote accepted

If you have not already done so, you should install the development tools that come with your Mac in one of the OS discs, which include gcc. So gcc and other such programs are standard, but not installed by default (I suppose the thinking behind this choice is that either one does not need them and won't miss them, or he won't have no trouble in installing them when needed).

share|improve this answer
indeed :) I have 2 cds which came with a mac, Applications (contains a bundle of mail,timemachine, spaces, ichat and Finder) and a MacOS Install. I suppose software is on a MACOS install DVD? – Jam May 14 '11 at 20:43
Yes, within the optional installs. – DaG May 14 '11 at 20:48
It seems that Optional Installs do not contains any shell programs at all .. is there specific app/ place i should be looking at? – Jam May 14 '11 at 23:51
Just install the Developer Tools (Xcode) - this installs all the command line tools such as gcc, gdb, etc - download Xcode 3.2.6 from rather than use an out of date version that came with your Mac – Paul R May 15 '11 at 7:18

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.