美文网首页
Brew错误clang: error、git: error

Brew错误clang: error、git: error

作者: 小良叔 | 来源:发表于2018-05-09 13:37 被阅读43次
Q
clang: error: unable to find utility "clang", not a developer tool or in PATH

git: error: unable to find utility "git", not a developer tool or in PATH
A

xcode-select的位置错误,需要修改指向的位置:

$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

# 修改xcode-select的位置
$ sudo xcode-select --switch /Library/Developer/CommandLineTools

# 再次运行brew命令即可正常运行

相关文章

网友评论

      本文标题:Brew错误clang: error、git: error

      本文链接:https://www.haomeiwen.com/subject/avvnrftx.html