V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
Livid
272.76D
573.23D
V2EX  ›  iDev

安装完 Xcode 4.3.1 之后 Homebrew 就装不了东西了⋯⋯

  •  
  •   Livid ·
    PRO
    · Mar 11, 2012 · 6338 views
    This topic created in 5174 days ago, the information mentioned may be changed or developed.
    16 replies    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    OP
    PRO
       Mar 11, 2012
    或许可能是因为 Components 中的 Command Line Tools (180 MB) 还没有装,下载中。
    agassi_yzh
        2
    agassi_yzh  
       Mar 11, 2012
    呀,我可以啊。昨天还装了个mldonkey
    agassi_yzh
        3
    agassi_yzh  
       Mar 11, 2012
    我昨天装的时候Command Line Tools还没有装
    kran
        4
    kran  
       Mar 11, 2012 via iPhone
    同样好一阵折腾,有的不支持用gcc-llvm编译,port超慢,mysql5-devel编译不过,ruby193的gems安不上等等等
    lonre
        7
    lonre  
       Mar 11, 2012
    4.3 的时候就出现这个问题了,很多需要编译的 ruby gems 也装不了,装了 Command Line Tools 也无果。
    最终还是装之前被卸载的 https://github.com/kennethreitz/osx-gcc-installer 才搞定的...
    dazuiba
        8
    dazuiba  
       Mar 13, 2012
    @lonre rvm install 1.9.3 --with-gcc=clang

    xcode升级到4.2或以上后,系统的gcc会被更新成llvm gcc, 很多库都跟llvm gcc不兼容的.

    想要使用gnu的cc ,需要加上 -gcc=clang选项.

    看这个:
    http://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues
    dazuiba
        9
    dazuiba  
       Mar 13, 2012
    最后提醒一下, 没有升级lion木有必要升级xcode4.3.1滴.

    那么要想debug ios5.1的设备, 只需要把xcode4.3.1的5.1sdk 拷贝到/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk 即可.

    细节可以google
    xream
        10
    xream  
       Mar 13, 2012
    osx-gcc-installer
    ohsc
        11
    ohsc  
       Mar 13, 2012
    4.3.1某人编译器已经是clang了,所以你会发现木有gcc了。
    icyleaf
        12
    icyleaf  
       Mar 13, 2012
    安装 command line tool 之后,尝试:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    lonre
        13
    lonre  
       Mar 14, 2012
    @dazuiba 这是安装 ruby 呀,但是我要安装需要 build 的 gem,但是 gem 命令没有这个 --with-gcc 参数的...
    soulhacker
        14
    soulhacker  
       Mar 14, 2012
    要装 command line tools. 事实上我在同事机器上试过只装 command line tool,brew doctor 会有 warning,但是其实装东西貌似没遇到问题。
    ant_sz
        15
    ant_sz  
       Mar 14, 2012
    Xcode.app 里的 Develop 目录 ln -s 到根目录么
    yelusiku
        16
    yelusiku  
       Mar 14, 2012
    以为livid用的是macports呢……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3750 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 113ms · UTC 10:38 · PVG 18:38 · LAX 03:38 · JFK 06:38
    ♥ Do have faith in what you're doing.