输入以下命令进行安装:
curl -L get.rvm.io | bash -s stable
需要等待两分钟,下载两个东西,结果如图:
接着输入以下命令,加载文件, 测试是否安装正常:
source ~/.bashrc
source ~/.bash_profile
source ~/.profile
查看rvm版本:
rvm -v
正常结果:
rvm 1.29.9 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
如出现下面提示:
A RVM version 1.27.0 (latest) is installed yet 1.25.23 (stable) is loaded.
Please do one of the following:
* 'rvm reload'
* open a new shell
* 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.
* 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.
输入以下命令:
rvm reload
rvm -v
输入以下命令,可查看rvm列表:
rvm list known