Those of you who are using the updated versions of Xcode, like Xcode 4.3 or 4.4 â€“ which is available for the Mountain Lion Developer Preview â€“ will probably run into an issue with homebrew at some point.
Xcode doesn’t install into /Developer any longer and is now an app bundle like most other Mac apps. Homebrew though expects some files to be available on your Mac to do its job, cc just being one of them. As a result, running brew doctor will tell you that something is wrong with your setup.
To get these command line tools back, you have to install them manually (via Homebrew on Github). After installing Xcode you get them by doing the following (see screenshot above):
- Open Xcode
- Go to Preferences
- Select Downloads and click Install for Command Line Tools (about 171 Megabyte)
There you go, brew doctor will be happy with you again.