【问题标题】:Fork loop installing Ruby 1.9.3 using RVM on OS X 10.7在 OS X 10.7 上使用 RVM 安装 Ruby 1.9.3 的 fork 循环
【发布时间】:2013-08-07 17:32:15
【问题描述】:

当尝试使用 RVM 在我的 OS 10.7 MBP 上安装 Ruby 1.9.3 时,我遇到了一个无限循环,因为它试图找到另一个 Ruby 来进行安装:

$ rvm system
$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-1.9.3-p448.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.

Warning! Requested ruby installation which requires another ruby available - installing one first.

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.

Warning! Requested ruby installation which requires another ruby available - installing one first.

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.

Warning! Requested ruby installation which requires another ruby available - installing one first.

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.7/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.

Warning! Requested ruby installation which requires another ruby available - installing one first.

Searching for binary rubies, this might take some time.
^C
To proceed rvm requires a ruby-1.9|ruby-2 compatible ruby is installed.
We attempted to install ruby automatically but it failed.
Please install it manually (or a compatible alternative) to proceed.


To proceed rvm requires a ruby-1.9|ruby-2 compatible ruby is installed.
We attempted to install ruby automatically but it failed.
Please install it manually (or a compatible alternative) to proceed.


To proceed rvm requires a ruby-1.9|ruby-2 compatible ruby is installed.
We attempted to install ruby automatically but it failed.
Please install it manually (or a compatible alternative) to proceed.


To proceed rvm requires a ruby-1.9|ruby-2 compatible ruby is installed.
We attempted to install ruby automatically but it failed.
Please install it manually (or a compatible alternative) to proceed.

当然,有红宝石礼物,否则我们不会走那么远:

$ which ruby
/usr/bin/ruby
$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]

知道可能是什么原因造成的,以及如何解决?

【问题讨论】:

  • 它确实说“ruby-1.9|ruby-2 compatible ruby​​”,而你的 Ruby (1.8.7) 不是。
  • 那是什么版本的 rvm?这可能是头部安装失败后的问题,检查:echo $rvm_head_flag.

标签: ruby macos rvm


【解决方案1】:

我最近在使用 ruby​​-1.8.7 的 OS X 10.8 上遇到了类似的问题。升级 rvm 对我有帮助。我已经完成了:

$ rvm get stable

然后:

$ rvm use system
$ rvm install 1.8.7-p374

【讨论】:

    【解决方案2】:

    我以前从未见过这种情况,但您的意思是 rvm use system 而不是 rvm system?

    试试

    $ rvm use system
    

    告诉 rvm 使用预装的 ruby​​。

    然后

    $ rvm install 1.9.3
    

    此外,查看 rvm 安装脚本,看起来这只影响 ruby​​ 1.9 和 ruby​​ 2.0。如果上述方法不行,请先尝试通过rvm安装ruby 1.8.7。

    【讨论】:

      猜你喜欢
      • 2013-10-31
      • 1970-01-01
      • 1970-01-01
      • 2012-02-22
      • 1970-01-01
      • 1970-01-01
      • 2014-04-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多