我想在我的Mac上安装git(OS X 10.10.3).我写道:brew install git
但它报告说:
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
Run Code Online (Sandbox Code Playgroud)
然后我写brew医生.它报告说:
Warning: /usr/local/include isn't writable.
This can happen if you "sudo …Run Code Online (Sandbox Code Playgroud)