简体   繁体   English

rvm已安装但未找到

[英]rvm installed and not found

installed rvm this way on debian server: 以这种方式在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

As you can see the rvm is still not avaiable. 如您所见,rvm仍然不可用。 there is no ~/.rvm directory to source (~/.source ~/.rvm/scripts/rvm) 没有~/.rvm目录作为源(~/.source ~/.rvm/scripts/rvm)

Looks like you install rvm on a system-wide , run command: 看起来您在system-wide rvm上运行命令:

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

and check again: 并再次检查:

$ rvm -v 

or restart shell. 或重新启动外壳。 thx @Gearmode 谢谢@Gearmode

You could fix this issue by writing 您可以通过以下方式解决此问题:

source ~/.rvm/scripts/rvm

in .bashrc file. .bashrc文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM