ERROR: 'rake/rdoctask' is obsolete and no longer supported

后端 未结 5 1622
野的像风
野的像风 2021-01-15 18:09

Out of the blue, I started getting the following error message:

(in /Users/me/.rvm/gems/ruby-1.9.3-p125@mysql2/gems/rails-0.9.5)
rake aborted!
ERROR: \'rake/         


        
5条回答
  •  醉梦人生
    2021-01-15 18:29

    The following works for me using ruby 1.9.3p448 (2013-06-27 revision 41675):

    1) Use rake version 10.1.0 (put following in your Gemfile):

    gem 'rake', '10.1.0'
    

    (Note you can likely use another version, but the line number below might change.)

    2) Comment line 54 of your Rakefile and replace it as follows:

    #require 'rake/rdoctask'
    gem 'rdoc', ">= 2.4.2"
    require 'rdoc/task'
    

    3) Test

    $ bundle install
    $ bundle exec rake
    

提交回复
热议问题