ruby - 在 OS X 10.7 上使用 RVM fork 循环安装 Ruby 1.9.3

标签 ruby macos rvm

当尝试使用 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.

当然,这里有一颗 ruby ,否则我们就不会走那么远:

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

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

最佳答案

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

$ rvm get stable

然后:

$ rvm use system
$ rvm install 1.8.7-p374

关于ruby - 在 OS X 10.7 上使用 RVM fork 循环安装 Ruby 1.9.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18109966/

相关文章:

ruby - 在法拉第传递 url 参数数组

ruby-on-rails - Heroku:如果你在 heroku 中有多个应用程序,你如何推送到特定的应用程序?

java - Java 7 如何决定在 OSX 上分配的堆内存的最大值 (-Xmx)

ios - 通过 OSX 将证书安装到 iOS 设备

ruby-on-rails - 在 rvm 上找不到 Rake、bundle、rails 命令

ruby-on-rails - "Error installing rails"因为 "extconf.rb failed"在 Ubuntu 18.04

mysql - 无法将 bigdecimal 分配给模型中的字段

objective-c - AppleEvents:收到 mach 消息,它不是 getMemoryReference 中预期的复杂类型

ruby-on-rails - 我在 Ubuntu 8.04.4 机器上安装 RVM 失败。我应该将它安装为多用户吗?

ruby - 在数组 Ruby 中保存像素颜色