我想安裝的git在我的Mac(OS X 10.10.3)。我寫:沖泡安裝的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
然後我寫沖泡醫生。它報道:
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
話,我chown將此lib和與包括「命令CHOWN 755」「包括須藤CHOWN 755 LIB」 第一和第二報警被刪除,但在第三個仍然存在。
而我更困惑的是,在我的發現者:/ usr/local /「include」和「lib」應該是文件夾,但成爲文件。 我怎樣才能解決錯誤「找不到otool」並安裝git與brew和
爲什麼我的lib和包含文件夾成爲文件?...感謝您的幫助!
這應該可能是問題跟蹤器的錯誤報告。 –
您的Xcode環境已損壞。如果缺少/ usr/bin/clang,則應重新安裝OS X.如果存在,則應確保'xcode-select -p'指向Developer路徑。否則,您應該重新安裝Xcode或Xcode命令行工具。 –
@TimSmith謝謝你的幫助。在/ usr/bin/clang中仍然存在。 'xcode-select -p'指向/Applications/Xcode.app/Contents/Developer。我無法理解爲什麼我的兩個文件夾成爲文件。這很混亂。因爲我在我的xcode中運行程序沒有問題。有人建議重新安裝自制軟件。我不知道該怎麼辦?你能解釋一下嗎? – Shawn