【发布时间】:2016-08-26 01:48:36
【问题描述】:
我目前在我的虚拟机上安装了 Ubuntu 16.04。我通过 RVM 安装了Ruby and Rails。之后我尝试了
$ rails
终端说
The program `rails` is currently not installed. You can install it by typing:
sudo apt install ruby-railties
我通过打字解决了这个问题
$ source ~/.rvm/scripts/rvm
学分here
但是,一旦我重新启动虚拟机,我对源所做的一切都会丢失,我需要重新输入
$ source ~/.rvm/scripts/rvm
我也有一些类似的情况需要在每次重新启动时执行。 那么有没有什么办法可以让这些命令每次都自动运行呢?
【问题讨论】:
标签: ruby-on-rails linux ubuntu