Rake uninitialized persistent RDoc :: RDoc

When I run make, I get this "uninitialized persistent error RDoc :: RDoc"

rake -T (mostly) rake interrupted! uninitialized constant RDoc :: RDoc C: /Ruby186/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb: 2383: in `raw_load_rakefile '(See Complete trace by completing the task with - -trace)

- change

Running --trace seems to be the only code without rails - from rdoc_rails. Since other people seem to be able to run this, I guess I don't have a gem or a plugin, but I can't figure out which one.

+7
ruby-on-rails rake
source share
3 answers

It looks like I should apply both solutions for Rails (2.3.12)

  • Install rake 0.9.2
  • Install RDoc 2.4.3
gem install rdoc --version=2.4.3 gem update rake 

I found a side effect of this solution, it caused another error, for example - Problems with Ruby on Rails and Rake: uninitialized constant Rake :: DSL

+12
source share

In my case, it was about updating rake: sudo gem update rake

+3
source share

rdoc_rails requires RDoc 2.4.3, which is not the last, so you need to install it specifically.

+1
source share

All Articles