问题
I installed ruby, rails and gemsets using RVM on ubuntu as instructed on : http://railstutorial.org/ruby-on-rails-tutorial-book#sec:rubygems
Now the problem is that everytime I reboot machine and open console, my RVM and rails settings are lost: when I try "rails server" - rails is not found and all gems are lost too. I need to install rails and install other gems like heroku again.
回答1:
Are you sourcing $HOME/.rvm/scripts/rvm into your shell in its .profile or whatever setup?
That would be the first thing to check.
Add this line:
source $HOME/.rvm/scripts/rvm
回答2:
Try the following
rvm --default use 1.9.3
来源:https://stackoverflow.com/questions/4976861/rvm-settings-lost-after-every-logout