Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer 1

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
2  
Just install the Developer Tools (Xcode) - this installs all the command line tools such as gcc, gdb, etc - download Xcode 3.2.6 from developer.apple.com rather than use an out of date version that came with your Mac –  Paul R May 15 '11 at 7:18

Your Answer

 
discard

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.