Ubuntu – Ruby command not recognized after installing it with rvm

rubyrvmsoftware installation

I followed this tutorial to install ruby with rvm: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm

The problem is that everytime that I log in, the ruby installation is not recognized, for example if I try executing a ruby script with the "ruby" command this is what I get:

enter image description here

To make it be recognized I have to run this command:

source ~/.rvm/scripts/rvm

But every time I login I have to do it again.

Best Answer

You can install Ruby by typing:

sudo apt-get install ruby-full

See the Doc.

Related Question