每次注销后都会丢失 RVM 设置 [英] RVM settings lost after every logout
问题描述
我按照以下说明在 ubuntu 上使用 RVM 安装了 ruby、rails 和 gemsets:http://railstutorial.org/ruby-on-rails-tutorial-book#sec:rubygems
I installed ruby, rails and gemsets using RVM on ubuntu as instructed on : http://railstutorial.org/ruby-on-rails-tutorial-book#sec:rubygems
现在的问题是,每次我重新启动机器并打开控制台时,我的 RVM 和 Rails 设置都会丢失:当我尝试rails server"时 - 找不到 rails 并且所有宝石也丢失了.我需要安装 rails 并再次安装其他 gems,比如 heroku.
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.
推荐答案
您是否将 $HOME/.rvm/scripts/rvm 采购到您的 shell 中的 .profile 或其他设置中?
Are you sourcing $HOME/.rvm/scripts/rvm into your shell in its .profile or whatever setup?
这将是首先要检查的事情.
That would be the first thing to check.
添加这一行:
source $HOME/.rvm/scripts/rvm
这篇关于每次注销后都会丢失 RVM 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!