undefined method `require_gem' for main:Object (NoMethodErro

Hi guys,

In my fedora 9 system i have installed ruby 1.86, actionmailer (2.1.0) actionpack (2.1.0) activerecord (2.1.0) activeresource (2.1.0) activesupport (2.1.0) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) fastthread (1.0.1) gem_plugin (0.2.3) mongrel (1.1.5) rails (2.1.0) rake (0.8.1) rubygems-update (1.2.0) sources (0.0.1)

But while creating a test rails application it shows the problem [root@localhost bin]# rails testapp /usr/bin/rails:17: undefined method `require_gem' for main:Object (NoMethodError)

Please give a idea to solve that.

Eros

But while creating a test rails application it shows the problem [root@localhost bin]# rails testapp /usr/bin/rails:17: undefined method `require_gem' for main:Object (NoMethodError)

It sounds like /usr/bin/rails (which is really just a stub that loads some gems) is really old (or created by an old version of rubygems). I'd try deleting it and reinstalling.

Fred