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


#1

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.


#2

On 2/9/07, peppermonkey removed_email_address@domain.invalid 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.


#3

On 2/9/07, peppermonkey removed_email_address@domain.invalid 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.