I have problem installing rails

I tried sudo gem install rails

and I get the following :

[code]
Successfully installed rails-3.1.0
1 gem installed
Installing ri documentation for rails-3.1.0...
file 'lib' not found
Installing RDoc documentation for rails-3.1.0...
file 'lib' not found
Stavros-Kefaleass-MacBook-Pro:~ skiabox$ rails -v
-bash: rails: command not found

[/code]

Any ideas?

Thank you.

Most likely the location of the rails executable is not in your path.

What does your path variable look like?

echo $PATH

The only location in my system that has a rails file is the following :

/usr/share/devicemgr/backend/vendor/rails/railties/bin/

Here is my $path variable :

/Users/skiabox/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/bin:/Users/skiabox/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/skiabox/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/skiabox/.rvm/bin:/Users/skiabox/pear/bin:/Applications/TextEdit.app/Contents/MacOS:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/ant/bin:/Users/skiabox/ZendFramework/bin