wening
V2EX  ›  问与答

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

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

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