Apparently, Apple no longer installs the command line tools for XCode automatically. Once you install XCode you need to go to the Preferences, then Downloads to install these as an extra step …
http://stackoverflow.com/questions/11705912/upgrading-to-mountain-lion-and-xcode-4-broke-my-make