HowTo update rake 0.8.1 -> 0.8.4 on debian

17 Apr
2009

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:

  1. Add a version timestamp with capistrano
  2. Switching to homebrew
  3. Freezing your Rails version/gems!
  4. Capistrano – Deploying 2.0
  5. HowTo: AdHoc distributing an iPhone app

13 Responses to HowTo update rake 0.8.1 -> 0.8.4 on debian

Avatar

frank

April 25th, 2009 at 3:11 pm

wow that’s so obscure. thanks, i found this useful.

Avatar

August Lilleaas

May 11th, 2009 at 1:42 pm

Found ya on google. The day is now saved!

Avatar

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.

Avatar

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?

Avatar

studpete

August 7th, 2009 at 12:37 am

sure, use dpkg’s force-feature do directly remove the package….

Avatar

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

Avatar

Marianne

October 15th, 2009 at 1:44 pm

Thanks! had this problem and your post solved it.

Avatar

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.

Avatar

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!

Avatar

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..

Avatar

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 [...]

Avatar

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

Avatar

Robert Najlis

April 28th, 2011 at 7:07 pm

Thanks , that was the problem – you saved me a big headache!

Comment Form

top

Switch to our mobile site