Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install Ruby on Rails and I have followed the following link for the install https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm.

This link was helpful; I was able to run it, and everything, however as soon has I restarted the computer I then go into my apps and run it again with rails and this message occurs.

The program 'rails' is currently not installed.  You can install it by typing:
sudo apt-get install rails

But work before, what should I do, do I need to set the path of somesort? I am not that great in Linux so bear with me.

I am using Ubuntu 12.04 desktop and my user is john.

share|improve this question

migrated from serverfault.com Oct 13 '12 at 21:16

This question came from our site for system and network administrators.

Do you see rails in the list of gems when you run 'gem list'? – Peer Allan Oct 13 '12 at 20:38
actually i see *** LOCAL GEMS *** and that its – Jseb Oct 13 '12 at 21:02
It looks like you installed rails outside of your path, indeed. Try finding where you installed it by looking at the scripts from the link you provided, and then add the folder containing rails to the path. Alternatively, since the whole thing seems amateurish (OS X-ish, even), do sudo apt-get install rails as the prompt says... – MarkovCh1 Oct 14 '12 at 6:05
Another idea would be to check file permissions (0755 for executables, 0644 for the rest) after installation. It bit me on one computer :] – Deer Hunter Oct 14 '12 at 14:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.