V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wening
V2EX  ›  问与答

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

  •  
  •   wening · Mar 31, 2012 · 5009 views
    This topic created in 5140 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    BenX
        1
    BenX  
       Apr 1, 2012
    linlinqi
        2
    linlinqi  
       Apr 1, 2012
    xcode装了command line tool应该会带上git吧?
    ant_sz
        3
    ant_sz  
       Apr 1, 2012 via Android
    xcode从4开始自带git了啦,xcode的版本控制功能依赖这个啊
    wening
        4
    wening  
    OP
       Apr 1, 2012
    @ant_sz 但是之前我是可以安装的啊
    问题是我brew 安装软件的时候都提示brew install git first啊
    roamlog
        5
    roamlog  
       Apr 1, 2012
    把这个装上 https://github.com/kennethreitz/osx-gcc-installer

    xcode 把 gcc 弄没没了。。。
    nouh
        6
    nouh  
       Apr 1, 2012
    用homebrew 安装git好了,之前先把 https://github.com/kennethreitz/osx-gcc-installer 装好
    bony
        7
    bony  
       Jul 20, 2012
    Xcode->Preferences->Downloads->Command Line Tools
    wening
        8
    wening  
    OP
       Jul 20, 2012
    @bony 多谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5379 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 09:37 · PVG 17:37 · LAX 02:37 · JFK 05:37
    ♥ Do have faith in what you're doing.