【问题标题】:RVM issue with Mountain Lion山狮的 RVM 问题
【发布时间】:2012-08-24 22:51:38
【问题描述】:

我可以在运行 Mountain Lion 的 Mac 上安装任何 Ruby 版本

我确保 Brew Doctor 一切正常。

当我运行 ie rvm intall 1.9.3-head 时,我得到以下信息。

From git://github.com/ruby/ruby
 * branch            ruby_1_9_3 -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
ruby-1.9.3-head - #autoreconf
ruby-1.9.3-head - #configuring 
ruby-1.9.3-head - #compiling 
Error running 'make', please read /Users/lee/.rvm/log/ruby-1.9.3-head/make.log
There has been an error while running make. Halting the installation.
lee$ mate /Users/lee/.rvm/log/ruby-1.9.3-head/make.log

这是make.log http://pastie.org/private/wt48jlhlng9tgbdgqap8q

请任何人提供建议。看起来MD5是问题??我不是命令行专家,所以任何帮助都会很棒。

提前致谢。

【问题讨论】:

    标签: ruby rvm


    【解决方案1】:

    查看这个答案https://stackoverflow.com/a/10540282/497756

    重点是:

    rvm pkg install openssl
    

    然后:

    rvm reinstall 1.9.3
    

    【讨论】:

    • 谢谢。我 99% 确定我已经尝试过了,但这次成功了。 TY
    【解决方案2】:

    尝试以下方法:

    • 更新 Xcode,获取适用于 Lion 的版本并再次运行该命令。

    • 安装使用:

      rvm 安装 1.9.3 --with-gcc=clang

    • 安装 GCC 4.2 并尝试:

      rvm 安装 1.9.3 --with-gcc=gcc-4.2

    希望其中之一能奏效。

    【讨论】:

    • 我得到的第一个:运行'make'时出错,请阅读/Users/leesmith/.rvm/log/ruby-1.9.3-head/make.log 运行make时出错.停止安装。 clang: error: unsupported option '--with-libyaml' Ruby 'ruby-1.9.3-head' 是使用 clang 构建的 - 但它不(完全)受支持,预计会出现错误。第二个失败了
    • aghh.. 我以前见过这个,我敢肯定。我只记得这是 1.9 编译器的问题。你有机会尝试最后一个吗?
    • 是的,我两个都跑了。这真的让我很沮丧。一整天都在做。回到狮子会更容易,但我不想!
    猜你喜欢
    • 2013-10-04
    • 2012-08-15
    • 1970-01-01
    • 2012-08-28
    • 1970-01-01
    • 1970-01-01
    • 2012-09-24
    • 2013-02-08
    • 1970-01-01
    相关资源
    最近更新 更多