xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at

来源:互联网 发布:单片机呼吸灯原理 编辑:程序博客网 时间:2024/05/10 16:32

今天在macOs系统中安装redis遇到了头大的问题;

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

原因是升级了macOS Sierra 版本之后,command line tools 工具没有用,
google了一下,在stackoverflow.com上面找到了问题的解决方法。

xcode-select --install

控制台输入以上代码下载xcode命令行工具,就可以完美解决问题了(不会帮你安装xcode)。

原网页:
https://stackoverflow.com/questions/32893412/command-line-tools-not-working-os-x-el-capitan-macos-sierra/32894314#32894314

阅读全文
0 0