RVM settings lost after every logout

主宰稳场 提交于 2019-12-01 05:48:51

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!