bits about life, coding and stuff
If you use the old rake, you mabe get this error:
rake aborted!
undefined method `reenable’ for <Rake::Task db:schema:dump => [environment]>:Rake::Task
Solution: update rake! That took me quite a while on a recent debian lenny server.
The problem: rake was installed as a debian package and as ruby gem.
Erase the package and make a symlink (with ln -s) from /usr/local/bin to /var/lib/gems/1.8/<new rake path>
Related posts:
13 Responses to HowTo update rake 0.8.1 -> 0.8.4 on debian
frank
April 25th, 2009 at 3:11 pm
wow that’s so obscure. thanks, i found this useful.
August Lilleaas
May 11th, 2009 at 1:42 pm
Found ya on google. The day is now saved!
chatura
May 12th, 2009 at 11:42 am
Good point… I got the same issue and solved it by giving “sudo gem1.8 update rake” command on terminal (in Ubuntu 8.04). BTW, I did not have to make symlinks.
vern
August 6th, 2009 at 11:41 pm
When I try remove rake using apt, it tells me to remove additional packages including rails. Is there a way to just remove the debian package without removing the other packages?
studpete
August 7th, 2009 at 12:37 am
sure, use dpkg’s force-feature do directly remove the package….
Gomer
September 10th, 2009 at 1:53 pm
s, though. thanks!Yah, I had a similar issue in Ubuntu. The apt repository had an o0ld version of rake. The version installed using gem work
Marianne
October 15th, 2009 at 1:44 pm
Thanks! had this problem and your post solved it.
Seph
October 21st, 2009 at 10:49 pm
A better way to accomplish this is to apt-get remove rake and then add /var/lib/gems/1.8/bin to your PATH in /etc/bashrc or ~/.bashrc. Symlinks could potentially get broken by updates, having the binaries in your path, won’t.
Doug Nakatomi
January 5th, 2010 at 1:45 am
I removed rails and rake via apt, then install both with gem, getting newer versions.
apt-get remove –purge rake
asked to confirm, said was going to remove rails and rake.
confirmed
gem install rake
gem install rails
cd /usr/local/bin/
ln -s /var/lib/gems/1.8/bin/* ./
thanks!
done!
Clem
February 18th, 2010 at 10:14 am
Very Very helpful thanks, now that I think about it, it makes perfect sense… I was sitting here for several hours, scratching me head..
Le Repaire du Sanglier des Ardennes » Blog Archive » Problème de migration de base de donnée.
April 12th, 2010 at 10:05 am
[...] http://petersteinberger.com/2009/04/howto-update-rake-081-084-on-debian/ Cet article a été publié le Lundi 12 avril 2010 à 10 h 59 min et est classé dans Ruby. Vous [...]
Ben
May 17th, 2010 at 4:21 pm
Assuming you’ve already got a more up to date gem system installed, it is actually simpler to do
1) apt-get remove rake
2) gem install rake
Robert Najlis
April 28th, 2011 at 7:07 pm
Thanks , that was the problem – you saved me a big headache!