Reputation: 191
When I try to install redmine by following the procedure here:
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
At step 4, I receive the following error:
[email protected] [~/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'
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
Upvotes: 1
Views: 11748
Reputation: 56446
The installation documentation states:
Rake 0.8.7 is required (rake 0.9.x is not supported by Rails yet)
And from your question I get that you're using 0.9.2.2.
You'll need to uninstall the currently installed version of rake (use gem list
to get the exact version number you have installed):
gem uninstall -v=0.9.2.2 rake
and install an older (supported) version:
gem install -v=0.8.7 rake
See also this answer for a similar question
Upvotes: 0
Reputation: 83
The Please install RDoc 2.4.2+ to generate documentation. is a warning message. You can ignore it.
Regarding the error: Don't know how to build task 'generate_session_store'
Just make the following file exists ~/rails_apps/redmine/lib/tasks/initializers.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
If you want to make the rdoc message to go away you can do the following:
If you have redmine's trunk version, edit ./Gemfile and add the following line:
gem "rdoc", ">= 2.4.2
And then run bundle install.
config.gem "rdoc", :version => "3.12"
And then run gem install -v "3.12"
Upvotes: 3
Reputation: 958
Looks like you might need to update that gem: gem list rdoc
will tell you what versions you have installed and you'll want gem update rdoc
if you've not got version 2.4.2 or above. If you have got it installed (and rails isn't using it), you may need to add something like this to config/environment.rb
:
config.gem "rdoc", :version => "3.12"
You can, of course, replace "3.12" with which ever version number you have.
Upvotes: 0