V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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
V2EX  ›  iDev

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

  •  
  •   Livid · 2012-03-11 09:10:43 +08:00 · 5343 次点击
    这是一个创建于 4431 天前的主题,其中的信息可能已经有所发展或是发生改变。
    16 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    OP
       2012-03-11 09:17:04 +08:00
    或许可能是因为 Components 中的 Command Line Tools (180 MB) 还没有装,下载中。
    agassi_yzh
        2
    agassi_yzh  
       2012-03-11 09:17:07 +08:00
    呀,我可以啊。昨天还装了个mldonkey
    agassi_yzh
        3
    agassi_yzh  
       2012-03-11 09:20:46 +08:00
    我昨天装的时候Command Line Tools还没有装
    kran
        4
    kran  
       2012-03-11 09:27:42 +08:00 via iPhone
    同样好一阵折腾,有的不支持用gcc-llvm编译,port超慢,mysql5-devel编译不过,ruby193的gems安不上等等等
    ywjno
        5
    ywjno  
       2012-03-11 10:10:45 +08:00
    bindiry
        6
    bindiry  
       2012-03-11 10:28:58 +08:00
    lonre
        7
    lonre  
       2012-03-11 11:31:15 +08:00
    4.3 的时候就出现这个问题了,很多需要编译的 ruby gems 也装不了,装了 Command Line Tools 也无果。
    最终还是装之前被卸载的 https://github.com/kennethreitz/osx-gcc-installer 才搞定的...
    dazuiba
        8
    dazuiba  
       2012-03-13 13:32:41 +08:00
    @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  
       2012-03-13 13:35:53 +08:00
    最后提醒一下, 没有升级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  
       2012-03-13 13:37:21 +08:00
    osx-gcc-installer
    ohsc
        11
    ohsc  
       2012-03-13 13:44:56 +08:00
    4.3.1某人编译器已经是clang了,所以你会发现木有gcc了。
    icyleaf
        12
    icyleaf  
       2012-03-13 14:03:50 +08:00
    安装 command line tool 之后,尝试:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    lonre
        13
    lonre  
       2012-03-14 10:02:50 +08:00
    @dazuiba 这是安装 ruby 呀,但是我要安装需要 build 的 gem,但是 gem 命令没有这个 --with-gcc 参数的...
    soulhacker
        14
    soulhacker  
       2012-03-14 10:24:00 +08:00
    要装 command line tools. 事实上我在同事机器上试过只装 command line tool,brew doctor 会有 warning,但是其实装东西貌似没遇到问题。
    ant_sz
        15
    ant_sz  
       2012-03-14 12:46:18 +08:00
    Xcode.app 里的 Develop 目录 ln -s 到根目录么
    yelusiku
        16
    yelusiku  
       2012-03-14 13:12:22 +08:00
    以为livid用的是macports呢……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2647 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:42 · PVG 23:42 · LAX 08:42 · JFK 11:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.