I have problem installing rails

I tried sudo gem install rails

and I get the following :

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

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 :


Here is my $path variable :

/Users/skiabox/.rvm/gems/[email protected]/bin:/Users/skiabox/.rvm/gems/[email protected]/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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs