error message ''undefined method `require_gem'' for main:Object (NoMethodError)''--how to resolve?

Kenneth McDonald
Tue, 30 Sep 2008 16:18:21 -0000

I''m getting the following when doing a db:migrate after installing RoR
2+:

Macintosh-4:ui Ken$ rake db:migrate
/usr/local/bin/rake:17: undefined method `require_gem'' for main:Object
(NoMethodError)

I have done a '' sudo gem update --system''. Any thoughts as to
what
might be causing this?

This is on OS X 10.5