mac下安装git后提示安装xcode
来源:互联网 发布:linux凝思重启网卡命令 编辑:程序博客网 时间:2024/05/21 10:11
背景:mac系统下安装git成功后,还要提示安装xcode,原因是mac系统区别于windows等系统,xcode是mac开发的基础必要软件。
我安装完git后,检查下git版本,提示1如下:
$ git version
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
可能也会提示:
-> git
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
解决方案,只要安装xcodeselect插件就好了,不需要下载整个xcode,详情如下:
1..xcode-select --install # 单独安装CommandLineTools
2.sudo xcode-select --switch /Library/Developer/CommandLineTools
ok,这样就解决了,在试下,git version,提示成功
$ git version
git version 2.11.0 (Apple Git-81)
阅读全文
0 0
- mac下安装git后提示安装xcode
- mac安装git后,在终端里运行git命令,系统提示需要安装Xcode问题解决
- Mac下利用(xcode)安装git
- MAC下安装git
- Mac下安装git 及git在xcode中的简单使用
- Mac下从安装Git到使用github进行版本控制(git命令/Xcode管理)
- Mac下从安装Git到使用github进行版本控制(git命令/Xcode管理)
- mac 下的 git 安装
- mac下git安装、使用
- 在Mac下安装git
- mac自行安装git和Xcode中的git
- mac下安装配置freeglut,设置xcode
- Mac下安装Opencv并配置Xcode
- 在MAC Xcode下安装OpenCV
- Mac下xcode 安装配置boost库
- mac下安装macports后安装nginx
- mac上使用git不一定非要安装xcode
- mac Xcode安装及使用Git代码管理工具
- 32:行程长度编码
- MySql的Blob字段报错:Data truncation: Data too long for column 'CONTENT' at row 1
- [编程题] 涂棋盘
- SpringBoot利用redis集成消息队列
- 卷积神经网络的一些改进操作
- mac下安装git后提示安装xcode
- 后台返回json,前台接收有问题
- org.hibernate.exception.SQLGrammarException:could not insert:问题解决
- 8-29 DAIRY
- VS软件的日常
- Python 踩坑记录
- CCF考试练习——201612-1
- 从瓶颈到精通——Android四大组件:Activity
- pl/sql重复记录处理