ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead

后端 未结 10 720
无人及你
无人及你 2020-12-04 17:59

Seems the last post for this problem was closed for one reason or another so I\'ll try my luck...

I\'m trying to run a simple \"rake db:migrate\" command. When I do,

10条回答
  •  抹茶落季
    2020-12-04 18:30

    This probably isn't the right way to do this, but I went into my Gemfile.lock file and changed my rake version back from 10.0.3 to 0.8.7. I'm running Rails 3.0.5 right now, and had updated briefly to 3.0.19 before reverting back. I believe that updated some gems and also made it so that the Rails gem was looking for the newest version greater than or equal to 0.8.7:

    rails (3.0.5)
      actionmailer (= 3.0.5)
      actionpack (= 3.0.5)
      activerecord (= 3.0.5)
      activeresource (= 3.0.5)
      activesupport (= 3.0.5)
      bundler (~> 1.0)
      railties (= 3.0.5)
    railties (3.0.5)
      actionpack (= 3.0.5)
      activesupport (= 3.0.5)
      rake (>= 0.8.7)
      thor (~> 0.14.4)
    rake (0.8.7)
    

    I also uninstalled 10.0.3:

    gem uninstall rake --version 10.0.3
    

    After that, everything is back to running as it should.

    If I didn't roll back rails 3.0.19, then I would have kept using rake 10.0.3.

    Hope this helps someone!

提交回复
热议问题