4
I recently installed git on my computer (OSX 10.10.1) and when I run git I get git: error: unable to find utility "git", not a developer tool or in PATH
. So I checked, found that I didn't have the directory that git was in in my PATH
so I added it in. I checked and my PATH
has it. My PATH
is
/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Users/Jesse/SDKs/android-sdk-macosx/platform-tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/Jesse/SDKs/android-sdk-macosx/tools/android:/opt/X11/bin:/usr/local/git/bin
You'll notice that the last one is /usr/local/git/bin
. If I cd to /usr/local/git/bin and run ./git
then git runs just fine. I can't figure out what might be causing this. I tried restarting my computer too just in case without any change.
consider adding or symlinking to default bin (aka /usr/bin) that is using the version for android-sdk which presumably is not default called by OSX – linuxdev2013 – 2015-04-23T18:30:05.527
That's interesting, there's already a git file in /usr/bin – Jesse Green – 2015-04-23T18:33:36.667
What's your
sudo xcode-select -p
path? – kenorb – 2015-04-23T18:44:15.390Does agreeing to licence helps?
sudo xcodebuild -license
– kenorb – 2015-04-23T18:47:44.257