1

RVM を介して ruby​​ 1.9.2 の最新バージョンをインストールしたいと思っていましたが、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 (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]

ありがとう

4

1 に答える 1

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 Hardy では動作せず、Lucid では動作したことは興味深いことです。

そして、これが役に立ちました:

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

(つまり、https: を git: に置き換えたところ、うまくいきました)

于 2011-10-04T01:05:59.360 に答える