只是不能让redmine工作 [英] Just cannot get redmine to work

查看:180
本文介绍了只是不能让redmine工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我一直在努力让redmine跟随网络上的各种教程,但我总是被困在同一个步骤:

  G:\Ruby187\apps\redmine> rake db:migrate 
注意:SourceIndex.new(hash)已被弃用;从G:/ Ruby187 / apps / redmine / config /。
./vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in`new'。
rake / rdoctask已弃用。改为使用rdoc /任务(在RDoc 2.4.2+中)
rake中止!
未初始化的常量ActiveSupport :: Dependencies :: Mutex

(通过使用--trace运行任务查看完整跟踪)

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

 需要'rake / rdoctask'

 require'rdoc / task'

但是,错误:

  G:\Ruby187\apps\redmine> rake db:migrate 
注意:SourceIndex。新(散列)已弃用;从G:/ Ruby187 / apps / redmine / config /。
./vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100:in`new'。
耙子中止!
没有这样的文件加载 - rdoc /任务

(通过使用--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. 创业板清单: p> G:\Ruby187\apps\redmine>宝石名单

      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)

    请帮忙!

    解决方案

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


    $ b


    Rake 0.8.7 是必需的(Rails不支持rake 0.9.x)


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

      gem uninstall -v = 0.9.2 rake 



    (answer y <

    并安装旧版本:

      gem install -v = 0.8.7 rake 

    另见这个在redmine论坛上的信息


    So, I've been trying to get redmine to work with following all kinds of tutorials around the web, but I always get stuck at the same step :

    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)
    

    Looking up the error, they tell me to change the Rakefile line :

    require 'rake/rdoctask'
    

    to

    require 'rdoc/task'
    

    But then I get the error :

    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)
    

    Here is some information about my setup :

    1. Machine : Windows 7 (32-bit)
    2. Redmine Version : 1.1.2
    3. Tutorial Followed : http://www.ptperalta.net/index.php/technology/installing-redmine-on-windows-step-by-step-guide.html
    4. gem list :

    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)
    

    Please help !

    解决方案

    The problem seems to be with your version of rake - from the RedmineInstall requirements section:

    Rake 0.8.7 is required (rake 0.9.x is not supported by Rails yet)

    You'll need to uninstall the currently installed version of rake:

    gem uninstall -v=0.9.2 rake
    

    (answer y)

    and install an older version:

    gem install -v=0.8.7 rake
    

    See also this message on the redmine forum

    这篇关于只是不能让redmine工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆