【问题标题】:Problems installing Ruby 1.9.3 with Rvm使用 Rvm 安装 Ruby 1.9.3 时出现问题
【发布时间】:2013-03-26 17:06:20
【问题描述】:

我正在尝试使用本指南安装 ruby​​ 1.9.3:http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/

当我运行 rvm install 1.9.3 时出现此错误

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392.
Continuing with compilation. Please read 'rvm mount' to get more information on binary         rubies.
Installing requirements for osx, might require sudo password.
Skipping `brew update` make sure your formulas are up to date.
Cowardly refusing to continue, please read 'rvm autolibs'.

然后我运行brew update,我得到了

Already up-to-date.

我也尝试运行brew doctor,然后我得到了

Your system is raring to brew.

怎么了?我该如何解决这个问题??

【问题讨论】:

    标签: ruby installation rvm homebrew ruby-1.9.3


    【解决方案1】:

    我遇到了同样的问题,这对我有用:

    \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
    

    来源:

    https://rvm.io/

    【讨论】:

    • 这行得通。我之前通过 rvm get latest 使用了 latest 。我想单独运行该命令可能会导致冲突。以上解决了我的问题。谢谢。
    【解决方案2】:

    试试:

    rvm list known
    

    如果没有返回任何内容,或者不包含您要查找的 ruby​​ 版本,请尝试更新

    rvm get stable
    

    然后尝试再次安装你想要的 ruby​​ 版本。

    【讨论】:

      猜你喜欢
      • 2012-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多