只是不能让redmine工作

时间:2011-09-20 12:40:10

标签: ruby-on-rails gem redmine

所以,我一直在努力让redmine能够在网络上学习各种各样的教程,但我总是陷入同样的​​困境:

G:\Ruby187\apps\redmine>rake db:migrate
NOTE: SourceIndex.new(hash) is deprecated; From G:/Ruby187/apps/redmine/config/.
./vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex

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

查找错误,他们告诉我更改Rakefile行:

require 'rake/rdoctask'

require 'rdoc/task'

但后来我收到了错误:

G:\Ruby187\apps\redmine>rake db:migrate
NOTE: SourceIndex.new(hash) is deprecated; From G:/Ruby187/apps/redmine/config/.
./vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in `new'.
rake aborted!
no such file to load -- rdoc/task

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

以下是有关我的设置的一些信息:

  1. 计算机:Windows 7(32位)
  2. Redmine版本:1.1.2
  3. 教程已关注:http://www.ptperalta.net/index.php/technology/installing-redmine-on-windows-step-by-step-guide.html
  4. 宝石清单:
  5. G:\ Ruby187 \ apps \ redmine> gem list

    actionmailer (2.3.5)
    actionpack (2.3.5)
    activerecord (2.3.5
    activeresource (2.3.5)
    activesupport (2.3.5)
    cgi_multipart_eof_fix (2.5.0)
    gem_plugin (0.2.3)
    i18n (0.4.2)
    mongrel (1.1.5 x86-mingw32)
    mysql (2.8.1 x86-mingw32)
    rack (1.0.1)
    rails (2.3.5)
    rake (0.9.2)
    

    请帮忙!

2 个答案:

答案 0 :(得分:6)

问题似乎与您的rake版本有关 - 来自RedmineInstall要求部分:

  需要

Rake 0.8.7 (Rails尚不支持rake 0.9.x)

您需要卸载当前安装的rake版本:

gem uninstall -v=0.9.2 rake

(回答y

并安装旧版本:

gem install -v=0.8.7 rake

另请参阅redmine论坛上的this消息

答案 1 :(得分:-1)

如果您在Windows上“手动”安装Redmine,请尝试BitNami Redmine Stack(在一个Windows安装程序中包含Redmine以及所有必需的依赖项)。

我也没有设法手动安装Redmine,所以我使用了BitNami安装程序,它只是工作,没有任何问题。