ruby-on-rails - RVM 不适用于 Vagrant

标签 ruby-on-rails linux ubuntu rvm vagrant

没有找到命令 'rvm',但是有 21 个类似的 rvm: command not found。当我在 linux ubuntu 14.04 上的 Vagrant 中时出现。

安装了 Vagrant 和 VirtualBox。

最佳答案

rvm command not found 找到


您的问题是当您打开一个新终端时,RVM 没有加载。

要解决此问题,请运行此命令行:(如果使用登录外壳)

echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile

或者这个(如果使用非登录 shell):

echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc

这将添加到 RVM 的路径以在每个终端实例化时加载(执行此操作后关闭并重新打开终端)。


你也可以尝试,如果你是 sshd 到你的盒子,运行 sudo apt-get update 然后安装它?

关于ruby-on-rails - RVM 不适用于 Vagrant,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27140173/

相关文章:

python - E : Could not get lock/var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)

ubuntu - 在 ubuntu 中没有 root 访问权限的 puppet 应用命令

html - collection_select 中自定义 text_method 的最佳实践?

javascript - 如何使用表单在 View 中更新模型列表而不使用 rails 中的 javascript (coffeescript) 刷新?

javascript - 如何在 ruby​​ on rails 中缓存 JSON?

linux - 如何将名称中包含特定单词的多个文件夹 move 到 linux 中的另一个目录?

linux - 通过 Chef 在 Amazon Linux 上安装 Zabbix Agent - Agent Starting and Stopping Got signal [signal :15(SIGTERM)reason:0]. Exiting

ruby-on-rails - PG::ConnectionBad - 无法连接到服务器:连接被拒绝

java - 在 Knoppix 上安装 Java 1.7

eclipse - Eclipse(Helios)上没有自动完成功能