首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Fork循环在OS X 10.7上使用RVM安装Ruby 1.9.3

Fork循环在OS X 10.7上使用RVM安装Ruby 1.9.3
EN

Stack Overflow用户
提问于 2013-08-08 01:32:15
回答 2查看 1.3K关注 0票数 1

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

代码语言:javascript
复制
$ 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.

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

代码语言:javascript
复制
$ which ruby
/usr/bin/ruby
$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]

你知道可能是什么原因造成的吗,以及如何修复?

EN

回答 2

Stack Overflow用户

发布于 2013-09-24 18:03:21

我最近在使用ruby-1.8.7的OSX10.8上遇到了类似的问题。升级rvm对我来说很有帮助。我已经做到了:

代码语言:javascript
复制
$ rvm get stable

然后:

代码语言:javascript
复制
$ rvm use system
$ rvm install 1.8.7-p374
票数 4
EN

Stack Overflow用户

发布于 2013-08-08 01:41:00

试一试

代码语言:javascript
复制
$ rvm use system

告诉rvm使用预先安装的ruby。

然后

代码语言:javascript
复制
$ rvm install 1.9.3

此外,看看rvm安装脚本,它看起来只影响ruby1.9和ruby2.0。如果上述方法不起作用,请先尝试通过rvm安装ruby 1.8.7。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18109966

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档