If you want to get an Apple account without a credit card, follow this.
2. Get "Command Line Tools for Xcode" inside Xcode
Xcode --> Open Developer Tool --> Command Line Tools for Xcode.dmg
3. You now have gcc and g++
Type
which gcc
you should see /usr/bin/gcc
, and which g++
you should see /usr/bin/g++
Extra notes:
- At first I cannot not find gcc in /usr/bin. Google points me to install Xcode
- After I have Xcode, gcc does not work either. I could not find /Developer. Then I read "/Developer No Longer Exists" in Xcode 4.3
This comment has been removed by the author.
ReplyDeleteThe steps he's describing are not command line instructions. He means:
ReplyDelete- Run Xcode (e.g., by double-clicking its icon)
- Click the "Xcode" menu at the top of the screen. You'll see "Open Developer Tool" under there.
(I had to then click "More Developer Tools..." before I saw the Command Line Tools as an option.)