【发布时间】:2012-11-09 16:36:21
【问题描述】:
当我执行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'
有谁知道如何解决这个问题?
【问题讨论】:
-
我最近通过 rvm 安装了 ruby 1.9.3,但我只是使用了
rvm install ruby-1.9.3。 RVM 将使用该命令安装ruby-1.9.3p286。 -
得分较高的答案应该被标记为正确,因为它是一个更直接的解决方案。 “重新安装操作系统”也可能有效,但这不是解决问题的正确方法。