Rake and rake aborted! Rake aborted! undefined method `gem'

Hi,
there must be some configuration mistake but can someone help me out?
I have ruby, gem, rails and such installed.
version
ruby: 1.8.4
gem: 0.8.11
rails 1.2.2

If I do a

rake rails:update

I get the following:

Rake aborted!
undefined method `gem’ for main:Object

I get the same message when doing just
rake

any ideas?
Is there a problem with my path?

thanks in advance.

On 2/9/07, peppermonkey [email protected] wrote:

any ideas?
Is there a problem with my path?

I know the newest version of rails requires the newest version of
rubygems,
this is where Object#gem comes from.

thanks in advance.

On 2/9/07, peppermonkey [email protected] wrote:

Hi,
there must be some configuration mistake but can someone help me out?
I have ruby, gem, rails and such installed.

yes, you need the latest version of rubygems.

Do:

sudo gem update --system

and consult the rubygems 0.9.2 release notes if you have trouble.