安装ri文档时Ruby gem失败

时间:2012-04-16 07:39:35

标签: ruby gem bundler

我正在尝试在我的Debian 6.0.4机器上安装GitLabHQ。这是2012年4月13日的全新安装。现在我已经到了需要一些安装由Ruby gem完成的地步。特别是:

gem install bundler

这显示以下错误:

Successfully installed bundler-1.1.3
1 gem installed
Installing ri documentation for bundler-1.1.3...
ERROR:  While executing gem ... (ArgumentError)
undefined class/module Encoding

然后我尝试用

重建Ruby包
gem pristine --all

这没有帮助。以下是安装的Ruby包列表:

rake-0.9.2.2 at Sat Apr 14 20:44:40 2012
rvm-1.11.3.3 at Sat Apr 14 20:44:47 2012
rubygems-bundler-0.9.0 at Mon Apr 16 09:04:32 2012
rack-test-0.6.1 at Mon Apr 16 09:11:10 2012
daemon_controller-1.0.0 at Mon Apr 16 09:11:10 2012
tilt-1.3.3 at Mon Apr 16 09:11:10 2012
erubis-2.7.0 at Mon Apr 16 09:11:10 2012
multi_json-1.2.0 at Mon Apr 16 09:11:10 2012
rack-cache-1.2 at Mon Apr 16 09:11:10 2012
thor-0.14.6 at Mon Apr 16 09:11:10 2012
actionmailer-3.2.3 at Mon Apr 16 09:11:10 2012
treetop-1.4.10 at Mon Apr 16 09:11:11 2012
fastthread-1.0.7 at Mon Apr 16 09:11:11 2012
activeresource-3.2.3 at Mon Apr 16 09:11:11 2012
polyglot-0.3.3 at Mon Apr 16 09:11:11 2012
i18n-0.6.0 at Mon Apr 16 09:11:12 2012
journey-1.0.3 at Mon Apr 16 09:11:12 2012
actionpack-3.2.3 at Mon Apr 16 09:11:12 2012
rack-ssl-1.3.2 at Mon Apr 16 09:11:12 2012
activesupport-3.2.3 at Mon Apr 16 09:11:12 2012
passenger-3.0.12 at Mon Apr 16 09:11:12 2012
railties-3.2.3 at Mon Apr 16 09:11:13 2012
rack-1.4.1 at Mon Apr 16 09:11:13 2012
sprockets-2.1.2 at Mon Apr 16 09:11:13 2012
mime-types-1.18 at Mon Apr 16 09:11:13 2012
arel-3.0.2 at Mon Apr 16 09:11:13 2012
hike-1.2.1 at Mon Apr 16 09:11:14 2012
mail-2.4.4 at Mon Apr 16 09:11:15 2012
activerecord-3.2.3 at Mon Apr 16 09:11:15 2012
activemodel-3.2.3 at Mon Apr 16 09:11:15 2012
tzinfo-0.3.33 at Mon Apr 16 09:11:15 2012
builder-3.0.0 at Mon Apr 16 09:13:07 2012
rdoc-3.12 at Mon Apr 16 09:15:52 2012
json-1.6.6 at Mon Apr 16 09:30:55 2012
bundler-1.1.3 at Mon Apr 16 09:31:06 2012

即使捆绑包出现在列表中,它似乎也没有正确安装。

我希望有人可以帮助我,因为我真的需要GitLabHQ才能工作。

丹妮拉。

1 个答案:

答案 0 :(得分:10)

不是解决方法,但确实是一种解决方法:放下这一行:

gem: --no-rdoc --no-ri

到一个名为~/.gemrc的文件中,以跳过rdoc和ri文档的安装(无论如何你可能不想在你的系统上安装它 - 它会加快安装过程的速度。)