WORKS With source run manually: source /usr/local/lib/rvm/scripts/rvm
ruby-1.9.3-p484@devops vagrant (master) $ vagrant ssh
Last login: Tue Sep 30 04:30:10 2014 from 10.0.2.2
[vagrant@vagrant-centos65 ~]$ sudo su -
[root@vagrant-centos65 ~]# source /usr/local/lib/rvm/scripts/rvm
[root@vagrant-centos65 ~]# rvm get head
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/master.tar.gz
Upgrading the RVM installation in /usr/local/lib/rvm/
Upgrade of RVM in /usr/local/lib/rvm/ is complete.
# Administrator,
#
# 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.
RVM reloaded!
[root@vagrant-centos65 ~]# rvm reload
RVM reloaded!
[root@vagrant-centos65 ~]# rvm --debug --version
rvm 1.25.32 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
__rvm_rm_rf already gone: /usr/local/rvm/tmp/20671*
[root@vagrant-centos65 ~]# rvm --debug list
rvm rubies
=* ruby-1.9.3-p484 [ x86_64 ]
# => - current
# =* - current && default
# * - default
__rvm_rm_rf already gone: /usr/local/lib/rvm/tmp/18191*
[root@vagrant-centos65 ~]#
DOES NOT WORK Using the shipped profile.d/rvm.sh without any symlinks or manual sourcing
ruby-1.9.3-p484@devops vagrant (master) $ vagrant ssh
Last login: Tue Sep 30 04:34:28 2014 from 10.0.2.2
[vagrant@vagrant-centos65 ~]$ sudo su -
[root@vagrant-centos65 ~]# rvm get head
-bash: rvm: command not found
[root@vagrant-centos65 ~]# rvm reload
-bash: rvm: command not found
[root@vagrant-centos65 ~]# rvm --debug --version
-bash: rvm: command not found
[root@vagrant-centos65 ~]# rvm --debug list
-bash: rvm: command not found
[root@vagrant-centos65 ~]#
WORKS WITH WARNING Using the shipped profile.d/rvm.sh with the manually created symlink + logout and login to re-source profile.d script.
ruby-1.9.3-p484@devops vagrant (master) $ vagrant ssh
Last login: Tue Sep 30 04:34:45 2014 from 10.0.2.2
[vagrant@vagrant-centos65 ~]$ sudo su -
[root@vagrant-centos65 ~]# ln -s /usr/local/lib/rvm /usr/local/rvm
[root@vagrant-centos65 ~]# rvm get head
-bash: rvm: command not found
[root@vagrant-centos65 ~]# logout
[vagrant@vagrant-centos65 ~]$ sudo su -
[root@vagrant-centos65 ~]# rvm get head
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/master.tar.gz
Upgrading the RVM installation in /usr/local/rvm/
chmod: missing operand after `g+s'
Try `chmod --help' for more information.
Upgrade of RVM in /usr/local/rvm/ is complete.
# Administrator,
#
# 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:
* WARNING: you have GEM_HOME="/usr/local/lib/rvm/gems/ruby-1.9.3-p484" this is conflicting with RVM, make sure to:
unset GEM_HOME
* No new notes to display.
RVM reloaded!
[root@vagrant-centos65 ~]# rvm reload
RVM reloaded!
[root@vagrant-centos65 ~]# rvm --debug --version
rvm 1.25.32 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
__rvm_rm_rf already gone: /usr/local/rvm/tmp/22295*
[root@vagrant-centos65 ~]# rvm --debug list
rvm rubies
=* ruby-1.9.3-p484 [ x86_64 ]
# => - current
# =* - current && default
# * - default
__rvm_rm_rf already gone: /usr/local/rvm/tmp/20671*
[root@vagrant-centos65 ~]#