problemas quando eu uso homebrew

Eu quero instalar o git no meu Mac (OS X 10.10.3).

mas relatou:

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

então eu escrevo o doutor da fermentação. relatou:

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

então eu mostro a lib e incluo com "sudo chown 755 include" "sudo chown 755 lib" o primeiro e o segundo aviso são removidos, mas o terceiro ainda está lá.

E o que mais me confundiu é que, no meu localizador: / usr / local / o "include" e "lib", que devem ser pastas, mas se tornar arquivos. como posso slove o erro "não é possível encontrar otool" e instalar o git com brew e

por que minha pasta lib e include se tornam arquivos? ... obrigado por sua ajuda!

questionAnswers(2)

yourAnswerToTheQuestion