After I have done this:
brew install git
I do this:
which git
which returns:
<
This has been solved.
I installed Xcode 4.3.2 via the App Store and installed the Command Line Tools, but I had an existing Xcode 3.1 installed from years ago. I Googled around and found these commands:
sudo /Developer/Library/uninstall-devtools –mode=all
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
That cured my problem and after I did that the compilers changed for brew:
$ brew --env
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j4
brew installs are much better now:
$ which git
/usr/local/bin/git
$ file /usr/local/bin/git
/usr/local/bin/git: Mach-O 64-bit executable x86_64