Re: problem with rubygems , " no such file to load "

2008/8/4 Frioffol Friofool <friofool@xxxxxxxxx>:
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:

[root@compute test_projet_rails]# gem -v


[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

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`