2008/8/4 Frioffol Friofool <friofool / gmail.com>:
> Hi !
>
> I'm doing a new installation of rails , but i get a big problem with
> rubygem :
>
> [root@compute test_projet_rails]# ruby script/console
>
> Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again:
> http://rubygems.rubyforge.org
>
> [root@compute test_projet_rails]# gem -v
>
> 1.2.0
>
> [root@compute test_projet_rails]# irb
>
> irb(main):001:0> require 'rubygems'
> LoadError: no such file to load -- rubygems
>        from (irb):1:in `require'
>        from (irb):1
> irb(main):002:0>
>
> What's wrong with my configuration ?

Maybe you have two Ruby installations. The one that is started by "ruby"
and "irb" doesn't have a gem installation. The one that the "gem" command
uses, does.

Compare the output of:

    $ cat `which gem` | head -n 1

    $ ls -l `which ruby`

Stefan