V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wening
V2EX  ›  问与答

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

  •  
  •   wening · 2012-03-31 22:58:34 +08:00 · 4248 次点击
    这是一个创建于 4419 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    8 条回复    1970-01-01 08:00:00 +08:00
    BenX
        1
    BenX  
       2012-04-01 08:30:04 +08:00
    linlinqi
        2
    linlinqi  
       2012-04-01 08:33:29 +08:00
    xcode装了command line tool应该会带上git吧?
    ant_sz
        3
    ant_sz  
       2012-04-01 08:54:04 +08:00 via Android
    xcode从4开始自带git了啦,xcode的版本控制功能依赖这个啊
    wening
        4
    wening  
    OP
       2012-04-01 14:26:47 +08:00
    @ant_sz 但是之前我是可以安装的啊
    问题是我brew 安装软件的时候都提示brew install git first啊
    roamlog
        5
    roamlog  
       2012-04-01 15:27:53 +08:00
    把这个装上 https://github.com/kennethreitz/osx-gcc-installer

    xcode 把 gcc 弄没没了。。。
    nouh
        6
    nouh  
       2012-04-01 15:29:31 +08:00
    用homebrew 安装git好了,之前先把 https://github.com/kennethreitz/osx-gcc-installer 装好
    bony
        7
    bony  
       2012-07-20 14:49:22 +08:00
    Xcode->Preferences->Downloads->Command Line Tools
    wening
        8
    wening  
    OP
       2012-07-20 18:27:55 +08:00
    @bony 多谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2520 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:01 · PVG 00:01 · LAX 09:01 · JFK 12:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.