rake aborted! undefined method 'reenable'

Asked by dmpeters63

I can't seem to wrap my head around.

When trying 'rake db:migrate' I get the following error.
  rake aborted!
  undefined method 'reenable' for <Rake::Task db:schema:dump => [enviroment]>:Rake::Task

I tried the following to fix:
  sudo apt-get remove rake
  sudo gem install rake

And I also did this:
  ln -s /usr/local/bin to /var/lib/gems/1.8/path...

Also i tried:
  sudo gem1.8 update rake

And I still get that dam error.
Does anyone know what I can do?

Thanks for anyones help.

Question information

Language:
English Edit question
Status:
Solved
For:
ubuntu-on-rails Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
dmpeters63 (dmpeters63) said :
#1

There seems to be a closed bug report regarding rake on ruby install with jaunty.
And one solution is that the bug is fixed with the upcoming karmic OS.
I found this on launchpad earlier but can't seem to find it now - so happy hunting...

Anyways to solve for on Jaunty:
 1. sudo apt-get remove rake
 2. gem uninstall rake (if installed as well) *Thats a problem right there generally is two installations...
 3. Double check all directories for anything associated with rake:
     i.e.) cache, doc, bin
 4.If anything does exist - sudo rm -r /<path-to-file>/...
 5. Reinstall rake through gem installer -> gem install rake
 6. Finally sym link your /usr/bin/ to the correct directory of rake

There seems to be something buggy going on and there are reports of bugs.
But, overall I found that the double installation causes a confusion for the OS and also to make sure the sym link to the correct directory once installed through gem.

I hope this helps anyone else - for I am a newbie myself and am not sure if all of this makes sense or is entirely true.