Redmine安装问题Ubuntu 12.04

时间:2012-08-14 04:05:34

标签: ruby rake redmine

我正在尝试根据官方Wiki安装Redmine,但是当我尝试运行rake generate_secret_token时出现以下错误

rake aborted!
Don't know how to build task 'generate_secret_token'

我已经进入这个问题但没有成功

Redmine: rake error when installing

**对于上面的问题,我认为运行命令rake secret已经解决,因为当我拨打rake -T时没有列出generate_secret_token **

当我尝试运行RAILS_ENV =生产佣金redmine:load_default_data时,我得到了

rake aborted!
Don't know how to build task 'redmine:load_default_data'

以下是追踪:

/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rak /task_manager.rb:49:in `[]'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:115:in `invoke_task'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `load'
/home/nuno/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `<main>'
/home/nuno/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/home/nuno/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

2 个答案:

答案 0 :(得分:2)

generate_secret_token任务仅适用于Redmine&gt; = 2.0.0。如果您使用较旧的版本(似乎很可能),则相关任务称为generate_session_store,请尝试

bundle exec rake generate_session_store

答案 1 :(得分:1)

最后,我解决了为Redmine http://bitnami.com/stack/redmine

安装Bitnami软件包的问题