Mac下xcrun: error: invalid active developer path问题解决方法
来源:互联网 发布:开店淘宝和天猫哪个好 编辑:程序博客网 时间:2024/05/21 05:24
引言: Mac系统下运行git之时的错误问题之解决办法
问题起源
在mac下,需要下载github下的某个项目:
git clone xxx
但是报出了错误信息。错误信息如下:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
问题分析
初步怀疑是git的问题,所以,尝试查看git的帮助信息:
git -h
结果仍然报出类似的错误信息:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
尝试检查一下git是否已经正确安装:
which git
/usr/bin/git
提示git已经被正确安装好了。
问题再次分析
是否是git的安装包被破坏了呢?于是尝试重新安装一下:
brew install git
结果报出如下的错误信息:
Error: The following formula: gitcannot be installed as a binary package and must be built from source.Install the Command Line Tools: xcode-select --installError: Git must be installed and in your PATH!Error: The following formula: gitcannot be installed as a binary package and must be built from source.Install the Command Line Tools: xcode-select --install
惊奇地发现brew提示了如下信息,需要xcode-select重新安装。
于是执行安装xcode-select指令:
xcode-select –install
结果
在xcode-select指令安装好之后,在命令检查一下git指令的帮助信息:
git -h
可以正确输出相应的帮助信息,意味着git已经被修复好了。
阅读全文
0 0
- Mac下xcrun: error: invalid active developer path问题解决方法
- Mac平台git出现xcrun: error: invalid active developer path
- git出现xcrun: error: invalid active developer path(Mac)
- mac osx up brew xcrun: error: invalid active developer path
- MAC OS下错误提示xcrun: error: invalid active developer path
- MAC OS下错误提示xcrun: error: invalid active developer path
- MAC OS下错误提示xcrun: error: invalid active developer path
- xcrun: error: invalid active developer path 解决办法
- git xcrun: error: invalid active developer path
- xcrun: error: invalid active developer path
- mac OS X El Capitan xcrun: error: invalid active developer path missing xcrun at
- mac OS X El Capitan xcrun: error: invalid active developer path missing xcrun at
- 解决mac升级后出现的 xcrun: error: invalid active developer path, missing xcrun 错误
- xcrun: error: invalid active developer path, missing xcrun 错误;
- Mac 升级git报错 - xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), mis
- mac OS 使用SVN命令行工具报 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- [问题] mac执行git命令出现xcrun: error: invalid active developer path解决方法
- mac执行git命令出现xcrun: error: invalid active developer path解决方法
- 【Mycat】数据库性能提升利器(一)——Mycat数据切分
- SSH的整合
- Android图片加载框架最全解析(二),从源码的角度理解Glide的执行流程
- 一大波金融Library来袭之numpy篇(12/10)
- 关于maven的一个小错误解决方法
- Mac下xcrun: error: invalid active developer path问题解决方法
- Tensorflow 入门(一)环境搭建
- SVN 仓库使用教程
- selenum在指定元素上进行鼠标单击左键和释放的操作
- 在C++中输入字符串
- 拥抱变革——RSNA2017参会记录
- 编译器的结构(2)
- python类初始化参数赋值,实例直接调用append函数后,导致所有实例中变量改动
- android中WebView 显示不全的问题