I bought a new MacBook Pro and installed the applications list below in order. On my old MacBook, also running OS X 10.6.6, I didn't have /usr/bin/git
, however, on the new MacBook Pro, I do. The only differences that I can think of between the two systems are:
Homebrew installed git 1.7.4.1 into /usr/local/Cellar/git
and symlinked it into /usr/local/bin
. This leads me to believe that Xcode 4 installed git
1.7.3.4 into /usr/bin
. Can anyone confirm or deny this?
If Xcode 4 didn't install git 1.7.3.4 into /usr/bin
, any thoughts what program did?
ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"
brew install git
brew install macvim
I ran pkgutil --file-info /usr/bin/git
and the following info was displayed. This appears to incriminate Xcode 4.
volume: /
path: /usr/bin/git
pkgid: com.apple.pkg.GitLeo
pkg-version: 4.0.0.9000000000.1.1248867338
install-time: 1300459157
uid: 0
gid: 0
mode: 755
By default, the path /usr/local/bin
is after /usr/bin
(see the file /etc/paths
). This means that git 1.7.3.4 is used instead of 1.7.4.1 that Homebrew installed.
Yes, it does. I just finished the Xcode 4 install. git was previously installed to /usr/local/git.
I am new to OS X, and can only suggest swapping the order of those directories in /etc/paths.
Not sure what else would/might work.