I want to install git on my Mac (OS X 10.10.3). I write: brew install git
but he reported:
sh: line 1: 1549 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find clang 2> /dev/null clang: error: unable to find utility "clang", not a developer tool or in PATH sh: line 1: 1552 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find otool 2> /dev/null 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
then I write brew doctor. he reported:
Warning: /usr/local/include isn't writable. This can happen if you "sudo make install" software that isn't managed by by Homebrew. If a formula tries to write a file to this directory, the install will fail during the link step. You should probably `chown` /usr/local/include Warning: /usr/local/lib isn't writable. This can happen if you "sudo make install" software that isn't managed by by Homebrew. If a formula tries to write a file to this directory, the install will fail during the link step. You should probably `chown` /usr/local/lib sh: line 1: 1318 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find otool 2> /dev/null 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
then I chown lib and include in "sudo chown 755 include" "sudo chown 755 lib" the first and second warning are deleted, but the third one still exists.
And what confuses me more is that in my finder: / usr / local / "include" and "lib", which should be folders, but become files. how can I transfer the error βcannot find otoolβ and install git with brew and
why does my lib and include folder become files? ... thanks for your help!
git include homebrew
Shawn Jun 11 '15 at 12:45 2015-06-11 12:45
source share