运行任何brew
命令,都提示错误
1 | git: error: unable to find utility "git", not a developer tool or in PATH |
1 | clang: error: unable to find utility "clang", not a developer tool or in PATH |
原因主要是因为xcode-select
的位置错误,需要修改指向的位置:
原来的位置:
1 | # taoyi @ TaoYi-Mac in ~/Desktop/MySQL-python-1.2.5 [13:27:05] C:72 |
修改到另一个位置:
1 | # taoyi @ TaoYi-Mac in /Applications/Xcode.app/Contents/Developer [13:33:33] C:1 |
如此操作之后,再执行brew命令,就不会再报上面的错了