Mac 安装git总体上这样的错误,为什么啊?

2012-03-31 22:58:34 +08:00
 wening
Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.9.5 CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CFLAGS=-Os\ -w\ -pipe\ -march=native\ -Qunused-arguments LDFLAGS= install (git.rb:49)
按照官方的方式安装了homebrew
xcode是4.3.2
不知道为什么总体上这个错误
执行brew install git
4323 次点击
所在节点    问与答
8 条回复
BenX
2012-04-01 08:30:04 +08:00
linlinqi
2012-04-01 08:33:29 +08:00
xcode装了command line tool应该会带上git吧?
ant_sz
2012-04-01 08:54:04 +08:00
xcode从4开始自带git了啦,xcode的版本控制功能依赖这个啊
wening
2012-04-01 14:26:47 +08:00
@ant_sz 但是之前我是可以安装的啊
问题是我brew 安装软件的时候都提示brew install git first啊
roamlog
2012-04-01 15:27:53 +08:00
把这个装上 https://github.com/kennethreitz/osx-gcc-installer

xcode 把 gcc 弄没没了。。。
nouh
2012-04-01 15:29:31 +08:00
用homebrew 安装git好了,之前先把 https://github.com/kennethreitz/osx-gcc-installer 装好
bony
2012-07-20 14:49:22 +08:00
Xcode->Preferences->Downloads->Command Line Tools
wening
2012-07-20 18:27:55 +08:00
@bony 多谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/31064

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX