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.