This question has been asked many times before but it seems everyone else is trying it on OS X. I’m on Ubuntu.
Here’s what I get when I try to sudo gem install rails:
$ sudo gem install rails
Successfully installed rails-3.0.3
1 gem installed
Installing ri documentation for rails-3.0.3...
file 'lib' not found
Installing RDoc documentation for rails-3.0.3...
file 'lib' not found
What do I have to do to get it to work?
I know it’s not working because of this:
$ rails
The program 'rails' is currently not installed. To run 'rails' please ask your administrator to install the package 'rails'
Turns out I needed to do this: