RVM settings lost after each logout

I installed rubies, rails and gemsets using RVM on ubuntu as indicated: http://railstutorial.org/ruby-on-rails-tutorial-book#sec:rubygems

Now the problem is that every time I restart the computer and open the console, my RVM and rails settings are lost: when I try the "rails server" - the rails are not found, and all the gems are lost too. I need to install the rails and install other gems again, like a hero.

+2
source share
2 answers

Do you put $ HOME / .rvm / scripts / rvm into your shell in your .profile or some other setting?

This will be the first thing to check.

Add this line:

source $HOME/.rvm/scripts/rvm 
+4
source

Try to execute

 rvm --default use 1.9.3 
+2
source

Source: https://habr.com/ru/post/900884/


All Articles