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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
73c04e9ef9ca435c5b19a2e765ae6d20?d=identicon&s=25 Max Williams (max-williams)
on 2008-11-05 12: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:

  #Rakefile
  # 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
73c04e9ef9ca435c5b19a2e765ae6d20?d=identicon&s=25 Max Williams (max-williams)
on 2008-11-05 15: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.