Forum: Ruby on Rails My rake is broken - "no such file to load..."

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Max W. (Guest)
on 2008-11-05 13:34
Hey folks

After doing an update from our svn server, rake is no longer working for
me, though it's fine for my team-mates.  I get this error:

no such file to load -- spec/rake/spectask
/home/max/work/e_learning_resource/trunk/Rakefile:10:in `require'

when i try to do any rake task.  The file it mentions looks like this,
with line 10 being the last line:

  # Add your own tasks in files placed in lib/tasks ending in .rake,
  # for example lib/tasks/capistrano.rake, and they will automatically
be available to Rake.

  require(File.join(File.dirname(__FILE__), 'config', 'boot'))

  require 'rake'
  require 'rake/testtask'
  require 'rake/rdoctask'

  require 'tasks/rails'

Can anyone help?
thanks, max
Max W. (Guest)
on 2008-11-05 16:22
I figured this out - it was because i'd updated rubygems, which was now
looking in a different folder for the gems than the one they were living
in.  So, my gems were all missing, effectively.
This topic is locked and can not be replied to.