SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Friday, December 26, 2008

no such file to load --rake

no such file to load --rake

.I got this error when i did my migrations,then i installed the gem rake.But it was already installed.While migration the error seems to be pointing /usr/bin/rake at line 18.Then i opened my irb console i type require 'rake' it throws the same error no such file to load --rake.Then i typed require 'rubygems' and then i typed require 'rake',it returns the value true.Then i edited the file /usr/bin/rake and then added the line require 'rubygems' after #!/usr/bin/ruby1.8.now i migrated my files and i didnt get this error once again.

1 comment :

  1. Thanks. A year plus later, I found this tip invaluable when trying to use Ruby on my Ubuntu 9.10 system. All "require" lines were failing until I added the "require 'rubygems'" to the top of rakefile.rb. You saved me a lot of struggle and work--thank you.

    ReplyDelete