1

当我执行rvm install ruby-1.9.3-head我得到这个错误:

➜  ~  rvm install ruby-1.9.3-head
Installing Ruby from source to: /Users/max/.rvm/rubies/ruby-1.9.3-head, this may take a while depending on your cpu(s)...
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Branch origin/ruby_1_9_3 not found.
There has been an error while checking out branch ruby_1_9_3.  
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.

ruby-1.9.3-head is not installed.
To install do: 'rvm install ruby-1.9.3-head'

有谁知道如何解决这一问题?

4

2 回答 2

5

我遇到了类似的问题,似乎某些存储库数据已过时/损坏。

➜ rvm cleanup repos解决了这个问题并解决了我的问题。

于 2012-11-15T11:24:33.420 回答
3

尝试做rvm get stablervm get head先。您可能拥有过时的 RVM 版本。

于 2012-11-09T16:56:42.443 回答