2011-06-27 31 views
1

我一直想通過RVM安裝最新版本的紅寶石1.9.2的克隆紅寶石1.9.2頭,但它試圖從GitHub獲取源時失敗:RVM未能從GitHub

albookpro-3:~ pl$ rvm install 1.9.2-head 
Installing Ruby from source to: /Users/pl/.rvm/rubies/ruby-1.9.2-head, this may take a while depending on your cpu(s)... 

ruby-1.9.2-head - #fetching 
Cloning from https://github.com/ruby/ruby.git, this may take a while depending on your connection... 
Initialized empty Git repository in /Users/pl/.rvm/repos/ruby-1.9.2-head/.git/ shallow over http or ftp not supported 
cloning from https://github.com/ruby/ruby.git failed, now attempting to clone from https://github.com/ruby/ruby.git, this may take a while depending on your connection... 
Initialized empty Git repository in /Users/pl/.rvm/repos/ruby-1.9.2-head/.git/ 
Cannot get remote repository information. 
Perhaps git-update-server-info needs to be run there? 
ERROR: There has been an error while trying to fetch the repository. 
Halting the installation. 
ERROR: There has been an error fetching the ruby interpreter. Halting the installation. 

當尋找已知的版本:

albookpro-3:~ pl$ rvm list known 
# MRI Rubies 
[ruby-]1.8.6[-p420] 
[ruby-]1.8.6-head 
[ruby-]1.8.7[-p334] 
[ruby-]1.8.7-head 
[ruby-]1.9.1-p378 
[ruby-]1.9.1[-p431] 
[ruby-]1.9.1-head 
[ruby-]1.9.2[-p180] 
[ruby-]1.9.2-head 
ruby-head 

... 

但它確實工作時,我取,我使用的是現在的版本1.9.2-P180。

我應該做什麼來完成這項工作? 我使用的是最新的RVM版本:

albookpro-3:~ pl$ rvm -v 

rvm 1.6.20 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/] 

感謝

+2

你有什麼版本的git的?它可能與此有關:https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days – matt

+0

我使用的是1.5.5,的確,升級到1.7.5.4似乎可以解決這個問題。謝謝! –

回答

1

我有類似問題的git:

$ git clone https://github.com/davedelong/CHDataStructures.git 
Initialized empty Git repository in /home/mg/Downloads/1/CHDataStructures/.git/ 
Cannot get remote repository information. 
Perhaps git-update-server-info needs to be run there? 
$ git-update-server-info 
fatal: Not a git repository 

有趣的是,在同一臺計算機上它沒有在Ubuntu下工作哈代,在Lucid工作。

而這正是幫助:

$ git clone git://github.com/davedelong/CHDataStructures.git 

(即我取代的https:用git:和它的工作)