【问题标题】:Why am I having trouble compiling Ruby 1.9.2 with RVM on Mac OS Lion?为什么我在 Mac OS Lion 上使用 RVM 编译 Ruby 1.9.2 时遇到问题?
【发布时间】:2012-01-23 15:36:48
【问题描述】:

我在 Mac OS Lion 上使用 rvm 安装 Ruby 1.9.2 时遇到问题。

卡在编译阶段;我没有看到任何错误或输出,但它会在编译消息中停留数小时。 miniruby 进程仍在运行并使用相当多的 CPU,但它永远不会结束。

我在日志中唯一能找到的是make.log 中的这条消息:

<internal:prelude>:1: [BUG] Segmentation fault

有什么想法可以编译吗?

【问题讨论】:

    标签: ruby macos rvm ruby-1.9.2


    【解决方案1】:

    你用的是什么版本的xcode?​​p>

    rvm requirements 有个小花絮:

    ** Lion 用户:适用于 OS X Lion 的 Xcode 版本 4.2.x 仅适用于 ruby​​ 1.9.3-p0(或更高版本)。 它目前无法构建其他几个红宝石和宝石,以及几个 Homebrew 和 麦克波特包。 Xcode 版本 4.1 (4B110) 有效。

    Xcode v4.1 位于:https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg

    确保您的 RVM 是最新的也很重要。运行rvm get head 升级到最新版本。

    【讨论】:

      【解决方案2】:

      这可能与 Lion 试图使用 llvm 编译而不是 gcc 有关。尝试运行类似CC=/usr/bin/gcc-4.2 rvm install 1.9.2 的命令来使用 gcc。

      根据其他答案中的信息:Why can't I install Rails on Lion using RVM?

      【讨论】:

        【解决方案3】:

        先阅读rvm的安装说明,点开对我有帮助的链接RVM on Mac

        【讨论】:

          猜你喜欢
          • 2023-03-13
          • 1970-01-01
          • 2011-10-14
          • 1970-01-01
          • 2011-11-04
          • 2012-03-22
          • 1970-01-01
          • 2011-11-30
          • 1970-01-01
          相关资源
          最近更新 更多