OS X 10.10: Errors Finding and Using brew and Git
The last time I used brew and Git, which was a couple of weeks ago, everything worked fine. Now, however, when I type git --version
in the terminal, I get
git: error: unable to find utility "git", not a developer tool or in PATH.
I have a Git folder in my / usr / local directory, though ...
If I try brew update
I get the same error, plus
Error: Failure while executing: git init.
brew install git
leads to:
clang: error: unable to find utility "clang", not a developer tool or in PATH
otool: error: unable to find utility "otool", not a developer tool or in PATH
Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
So, something seems to be seriously wrong with my Git installation (and brew?), Or at least its path.
If I specify the path manually by typing
export PATH=/usr/local/git/bin:$PATH
in the terminal and then ask for my Git version, I get the correct output:
git version 2.3.5
Can someone tell me what is wrong here, or how can I fix my path for Git and brew to work again?
source to share
OMG, I got it! I did two weeks ago: I installed Python 3.4 and uninstalled Python 2.7, which is preinstalled on OS X. And only now I found out that Python 2.7 is vital for Xcode, so I just installed it again.
Now that both Python versions are on my system, Xcode not only works again without complaint, but brew no longer produces any errors ...
source to share
This is a common problem, namely the error:
git pull
error: unable to find 2fcd18343b3817d1ed79a72c0c878811fd27e833
The idea is to use:
git revert HEAD
(it's probably not the best, but it seems to work)
I would suggest looking also How can I checkout from a Git repository via an HTTP proxy? , he may give you an additional idea on how to solve the problem.
Good luck! Hope this helps you.
source to share