Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
1  
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
1  
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... –  Syzygy 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
add comment

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

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.