0

当我运行时:

bash < <( curl -L http://bit.ly/rvm-install-system-wide )

我收到以下错误:

请确保 git 已安装并在 PATH 中可用以继续。

Git 已安装:

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.3)
actionpack (3.0.3)
activemodel (3.0.3)
activerecord (3.0.3)
activeresource (3.0.3)
activesupport (3.0.3)
arel (2.0.6)
builder (2.1.2)
bundler (1.0.7)
erubis (2.6.6)
git (1.2.5)
i18n (0.5.0)
mail (2.2.12)
mime-types (1.16)
minitest (1.6.0)
polyglot (0.3.1)
rack (1.2.1)
rack-mount (0.6.13)
rack-test (0.5.6)
rails (3.0.3)
railties (3.0.3)
rake (0.8.7)
rdoc (2.5.8)
RedCloth (4.2.3)
ruby-oci8 (2.0.4)
rvm (1.1.6)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.23)
4

2 回答 2

3

我想ruby​​gem 与 RVM 安装git所需的命令行gitDVCS 工具不同。查看http://book.git-scm.com/2_installing_git.html,并在您的系统上安装 git DVCS 工具。然后您会注意到它which git返回了一个有效的结果,并且 RVM 安装程序可能会工作。

于 2010-12-24T00:31:07.123 回答
0

您显然有路径问题,因为 git 不在您的路径中。

首先,您是否尝试以 root 身份安装 RVM?其次,确保安装了 git,而不是 git gem,并将其添加到您的路径中(以 root 身份)

$: export PATH=/path/to/git/directory:$PATH

运行此命令后确保which git返回/path/to/git/directory/git

最后,您可以尝试重新安装系统范围的 RVM。

于 2010-12-24T15:04:33.963 回答