当我尝试使用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]
知道可能导致这种情况的原因,以及如何解决?
答案 0 :(得分:4)
我最近在OS X 10.8上遇到了类似的问题,使用了ruby-1.8.7。在我的案例中,升级rvm很有帮助。我做完了:
$ rvm get stable
然后:
$ rvm use system
$ rvm install 1.8.7-p374
答案 1 :(得分:0)
我以前从未见过这个,但您的意思是rvm use system
而不是rvm system
?
尝试
$ rvm use system
告诉rvm使用预装的红宝石。
然后
$ rvm install 1.9.3
此外,看看rvm安装脚本,看起来这只会影响ruby 1.9和ruby 2.0。如果上述方法无效,请先尝试通过rvm安装ruby 1.8.7。