Brew错误clang: error、git: error

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)