6

我正在尝试在我的 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

然后我尝试用

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 才能工作。

丹妮拉。

4

1 回答 1

10

不是一个修复,真的,而是一个解决方法:把这行:

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

进入一个名为~/.gemrc跳过安装 rdoc 和 ri 文档的文件(无论如何,您可能不希望在您的系统上安装 - 它会大大加快安装过程)。

于 2012-04-16T07:43:51.407 回答