赞
踩
mac 升级到 macos Mojave 14 版本的时候,想使用git却发现没有git了。原因是缺少了CommandLineTools,必须要安装 xcode,因为其实属于xcode 的一个工具。
wh-jsdembp:data_analysis wh-js$ git init
出现如下报错:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
可以通过如下的方法来进行解决。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#brew install xxx brew install wget # 卸载软件 #brew remove xxx brew remove wget # 查看软件的信息 #brew info xxx brew info wget # 查看已经安装的软件 brew list # 升级已经安装的软件 brew upgrade wget
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。