Redmine Gitosis安装:rake找不到inifile

时间:2012-04-17 18:09:05

标签: ruby-on-rails ruby redmine

我今天成功安装了Redmine。我尝试按照here所述安装Gitosis插件。当我运行命令sudo -u www-data X_DEBIAN_SITEID=default RAILS_ENV=production rake db:migrate:plugins时,我收到此错误:

(in /var/www/lemusc.de/redmine/public_html)
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already      initialized constant RUBY
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already    initialized constant LN_SUPPORTED
Please install RDoc 2.4.2+ to generate documentation.
rake aborted!
no such file to load -- inifile

(See full trace by running task with --trace)

我使用gem install inifile安装了inifile,如教程中所述,但它仍然会发生。

任何帮助?

2 个答案:

答案 0 :(得分:0)

在列出宝石(gem list)时,我注意到了这样的事情:

Invalid gemspec in [/var/lib/gems/1.8/specifications/inifile-1.1.0.gemspec]: invalid date format in specification: "2012-02-28 00:00:00.000000000Z"

所以我转到了这个spec文件(/var/lib/gems/1.8/specifications/inifile-1.1.0.gemspec)并简单地用日期删除了该行。

之后,我的红胺回来了。

答案 1 :(得分:0)

我从这里得到答案:http://eric.lubow.org/2009/ruby/parsing-ini-files-with-ruby/

致电$:.unshift( '/usr/lib64/ruby/gems/1.8/gems/inifile-0.1.0/lib/' )有帮助。我必须将它改为路径,因为inifile lib是