已安装但未找到 rvm

rvm installed and not found

在 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 

或重新启动shell。谢谢

您可以通过编写

来解决这个问题
source ~/.rvm/scripts/rvm

.bashrc 文件中。