命令行工具不起作用-OS X El Capitan,Sierra,High Sierra,Mojave [英] Command Line Tools not working - OS X El Capitan, Sierra, High Sierra, Mojave
本文介绍了命令行工具不起作用-OS X El Capitan,Sierra,High Sierra,Mojave的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚从优胜美地升级到El Capitan(并复制了从El Capitan升级到Sierra的问题),当我尝试在终端机中键入例如git status
时,出现以下错误:
I just upgraded from Yosemite to El Capitan (and replicated the problem upgrading from El Capitan to Sierra), and when I try to type for example git status
inside a terminal, I get the following error:
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
我没有安装Xcode,也从未安装过. 有人有解决办法吗?
I don't have Xcode installed, never did. Anyone have a solution?
推荐答案
Found the fix for the problem here.
xcode-select --install
这将提示您安装必要的命令行工具.
This will bring up a prompt to install the necessary command line tools.
这篇关于命令行工具不起作用-OS X El Capitan,Sierra,High Sierra,Mojave的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文