I have Xcode installed, but when I type gcc
in terminal I get "command not found". Maybe I messed up the $PATH
variable? What is suposed to be the default value?
EDIT:
(...):/ imac2$ echo $PATH
/opt/local/bin:/opt/local/sbin:/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:/Applications/SenchaSDKTools-2.0.0-Beta/bin:/Applications/SenchaSDKTools-2.0.0-Beta:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Best Answer
You need to install the Xcode command-line developer tools. Open Xcode and go to Xcode → Preferences → Downloads, select the Components tab, and click the button next to “Command Line Tools”.
See Is the installation of Xcode from App Store enough for having the developer tools?.