You need to install the Xcode command-line developer tools.

Open Xcode and go to XcodePreferencesDownloads, select the Components tab, and click the button next to “Command Line Tools”.

Sumber : http://apple.stackexchange.com/questions/48099/gcc-not-found-but-xcode-is-installed