Redmine:安装时出现耙子错误 [英] Redmine: rake error when installing

查看:58
本文介绍了Redmine:安装时出现耙子错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试按照以下步骤安装 redmine 时:
http://www.redmine.org/projects/redmine/wiki/RedmineInstall

When I try to install redmine by following the procedure here:
http://www.redmine.org/projects/redmine/wiki/RedmineInstall

在第 4 步,我收到以下错误:

At step 4, I receive the following error:

xxx@xxx.com [~/rails_apps/redmine]# rake generate_session_store
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
Please install RDoc 2.4.2+ to generate documentation.
rake aborted!
Don't know how to build task 'generate_session_store'

你能帮我解决吗?
一些信息:
红宝石版本:1.8.13
红宝石版本:1.8.7 (2011-02-18 补丁级别 334) [x86_64-linux]
导轨版本:2.3.14

Can you help me to solve?
Some infos:
RUBYGEMS VERSION: 1.8.13
RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
RAILS VERSION: 2.3.14

推荐答案

请安装 RDoc 2.4.2+ 以生成文档. 是一条警告消息.你可以忽略它.

The Please install RDoc 2.4.2+ to generate documentation. is a warning message. You can ignore it.

关于错误:不知道如何构建任务'generate_session_store'

只要让下面的文件存在~/rails_apps/redmine/lib/tasks/initializers.rake.

Just make the following file exists ~/rails_apps/redmine/lib/tasks/initializers.rake.

如果没有,请确保您已下载所有文件.此外,您始终需要在 redmine 文件夹中运行 rake 任务.

If not, make sure you've download all the files. Also, you always need to run the rake task inside the redmine folder.

[~]# cd ~/rails_apps/redmine
[~/rails_apps/redmine]# ls
[~/rails_apps/redmine]# =1.6  app  config  db  doc  extra  files  Gemfile  Gemfile.lock  lib  log  public  Rakefile  README.rdoc  script  test  tmp  vendor
[~/rails_apps/redmine]# rake generate_session_store --trace
Please install RDoc 2.4.2+ to generate documentation.
** Invoke generate_session_store (first_time)
** Invoke config/initializers/session_store.rb (first_time, not_needed)
** Execute generate_session_store

如果您想让 rdoc 消息消失,您可以执行以下操作:

If you want to make the rdoc message to go away you can do the following:

  • 如果你有 redmine 的主干版本,编辑 ./Gemfile 并添加以下行:

  • If you have redmine's trunk version, edit ./Gemfile and add the following line:

gem "rdoc", ">= 2.4.2

gem "rdoc", ">= 2.4.2

然后运行捆绑安装.

  • 如果您有最新的稳定 1.3.x 版本,请将 additional_environment.rb.example 复制到 additional_environment.rb 并添加建议的行RobinGower:
  • If you have the latest stable 1.3.x version copy additional_environment.rb.example to additional_environment.rb and add the line suggested by RobinGower:
config.gem "rdoc", :version => "3.12"

然后运行 ​​gem install -v "3.12"

And then run gem install -v "3.12"

这篇关于Redmine:安装时出现耙子错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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