ruby-on-rails - 已安装但未找到 rvm

标签 ruby-on-rails ruby rvm

在 debian 服务器上以这种方式安装 rvm:

root@aaa-env1-chef-demo-dal01:/home/partuck# curl -L https://get.rvm.io | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0   1149      0 --:--:-- --:--:-- --:--:--  1628
100 22721  100 22721    0     0  84938      0 --:--:-- --:--:-- --:--:-- 84938
Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc
gpg: Signature made Mon Mar 30 21:52:13 2015 UTC using RSA key ID BF04FF17
gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 409B 6B17 96C2 7546 2A17  0311 3804 BB82 D39D C0E3
     Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36  166B E206 C29F BF04 FF17
GPG verified '/usr/local/rvm/archives/rvm-1.26.11.tgz'

Upgrading the RVM installation in /usr/local/rvm/
Upgrade of RVM in /usr/local/rvm/ is complete.

# partuck,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

 In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

Upgrade Notes:

  * No new notes to display.

root@aaa-env1-chef-demo-dal01:/home/partuck# rvm list
bash: rvm: command not found

如您所见,rvm 仍然不可用。没有 ~/.rvm 源目录 (~/.source ~/.rvm/scripts/rvm)

最佳答案

看起来你在 system-wide 上安装了 rvm , 运行命令:

$ source /etc/profile.d/rvm.sh

再次检查:

$ rvm -v 

或重新启动外壳。谢谢@Gearmode

关于ruby-on-rails - 已安装但未找到 rvm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34481648/

相关文章:

ruby-on-rails - 为什么 null monkeypatch 会删除迁移中的方法而不是 Rails 控制台中的方法?

ruby-on-rails - 如何覆盖 Rails 的默认迁移生成器模板

ruby - RVM 和 Jenkins 设置

ruby-on-rails-3 - Rails 3 - 每当 gem 错误 :/usr/bin/env: ruby: No such file or directory

ruby - RVM pkg 安装校验和错误

ruby-on-rails - 为什么新的 Rails 数据库迁移文件以日期戳而不是序列号开头?

sql - 区别和秩序

ruby - 优化递归搜索

ruby-on-rails - 如何在 Rails 控制台抑制一些输出

ruby - 何时将字符串用法重构为 Ruby 中的符号