mxcl/homebrew — Issue #8876: Brew Doctor - We couldn't detect gcc 4.2.x. Some formulae require this compiler.
Author: steventruong
Created: 2011-11-29 21:40:30+00:00
State: open

I followed these exact instructions here: http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/

I literally did a fresh lion install and followed everything step by step and barely got anywhere when I got to the step for brew doctor and ended up with this error:

We couldn't detect gcc 4.2.x. Some formulae require this compiler.

I didn't get any other error. Brew update is already up to date and git is installed. Tried googling this problem for hours and getting nowhere fast. The path in .bash_profile and .bashrc is set. I installed XCode fresh and did all the steps in order so I'm lost. Not sure where to proceed from here.

Any ideas? It looks like a bunch of other people are having this issue. Reinstalling XCode isn't working for me. Running XCode version 4.2.1.