2013-08-07 81 views
1

嘗試使用RVM在我的操作系統10.7 MBP上安裝Ruby 1.9.3時,出現無限循環,因爲它試圖找到另一個Ruby來執行安裝:在OS X 10.7上使用RVM安裝Ruby 1.9.3的叉環使用RVM在OS X 10.7上

$ 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

它說「紅寶石1.9 |紅寶石-2兼容的紅寶石」,你的紅寶石(1.8.7)不是。 –

+0

是什麼版本的rvm?這可能是頭安裝失敗後的問題,請檢查:echo $ rvm_head_flag。 – mpapis

回答

0

我以前從未見過這個,但是您的意思是rvm use system而不是rvm system

嘗試

$ rvm use system 

告訴RVM使用預裝的紅寶石。

然後

$ rvm install 1.9.3 

此外,望着RVM安裝腳本,它看起來像這樣僅影響紅寶石1.9和Ruby 2.0。如果上述不起作用,請先嚐試通過rvm安裝ruby 1.8.7。

4

我最近在OS X 10.8上使用ruby-1.8.7時出現了類似的問題。升級rvm對我有幫助。我做:

$ rvm get stable 

然後:

$ rvm use system 
$ rvm install 1.8.7-p374 
相關問題