Project

General

Profile

rake/rdoctask is deprecated

Added by Alfred Naayem over 13 years ago

Hello, I am trying to install redmine 1.1.3 (latest) using this guide: http://www.how-to-linux.com/centos-52/how-to-install-redmine-on-centos-52-update/
I am at the stage where I have to put in rake db:migrate RAILS_ENV=”production” which seems similar to RAILS_ENV=production rake db:migrate. This is my first time working with Ruby on Rails and I get this error:
@
[root@pul redmine]# RAILS_ENV=production rake db:migrate
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /opt/redmine/lib/tasks/email.rake:170
rake aborted!
undefined method `name' for "abstract":String

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
@

I have no idea how to rewrite it using RDoc.. Please help.

Rails 2.3.11
Ruby 1.8.7
Gem 1.8.3


Replies (12)

RE: rake/rdoctask is deprecated - Added by Etienne Massip over 13 years ago

RubyGems 1.8 isn't supported, please see RedmineInstall.

RE: rake/rdoctask is deprecated - Added by Alfred Naayem over 13 years ago

Downgraded my Gem to 1.6.2

I don't know how to downgrade ruby though.. I'm on CentOS..

RE: rake/rdoctask is deprecated - Added by Alfred Naayem over 13 years ago

and what version of ruby do you suggest?

RE: rake/rdoctask is deprecated - Added by Alfred Naayem over 13 years ago

requirements say 1.8.7.. I am under 1.8.7

RE: rake/rdoctask is deprecated - Added by Etienne Massip over 13 years ago

Sorry, didn't see you were trying to downgrade Ruby.

Ruby 1.8.7 is fine, the issue was because of Gems version, so you should have solved it already.

RE: rake/rdoctask is deprecated - Added by Alfred Naayem over 13 years ago

Etienne Massip wrote:

Sorry, didn't see you were trying to downgrade Ruby.

Ruby 1.8.7 is fine, the issue was because of Gems version, so you should have solved it already.

I'm still getting the same error, I've treid 1.8.6 and it gave a slightly different error:
@
[root@pul redmine]# rake db:migrate RAILS_ENV=.production.
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54: warning: parenthesize argument(s) for future version
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:203: warning: parenthesize argument(s) for future version
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:204: warning: parenthesize argument(s) for future version
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
undefined method `end_with?' for "no such file to load -- fast_xs":String

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

RE: rake/rdoctask is deprecated - Added by Etienne Massip over 13 years ago

What does gem list return ?

RE: rake/rdoctask is deprecated - Added by Anton Petrov over 13 years ago

I had this problem when redmine has been installed this nigth.

rake version 0.9.0 ( rm -f `find | grep 0.9.0 | grep rake ` ) has been removed,
rake version 0.8.7 ( gem install -v=0.8.7 rake ) has been installed

all is ok now

RE: rake/rdoctask is deprecated - Added by Rimgaudas Laucius over 13 years ago

C:\tools\redmine>gem uninstall -v=0.9.2 rake
Remove executables:
rake

in addition to the gem? [Yn] Y
Removing rake

You have requested to uninstall the gem:
rake-0.9.2
rails-2.3.11 depends on [rake (>= 0.8.3)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] Y
Successfully uninstalled rake-0.9.2

C:\tools\redmine>gem install -v=0.8.7 rake
Fetching: rake-0.8.7.gem (100%)
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...

RE: rake/rdoctask is deprecated - Added by Rafael Ferreira over 13 years ago

@Rimgaudas Laucius
This solve my problem, I was suffering a lot of problems what I did.

- sudo gem update --system 1.6.2
- gem uninstall -v=0.9.2 rake

No seems to be working!

Thanks for your post!

    (1-12/12)