curl -L get.rvm.io | bash -s stable
curl: (6) Couldn't resolve host 'get.rvm.io'
在浏览器上访问get.rvm.io,实际跳转到如下地址
https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer
所以,修改命令:
curl -L https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
安装成功之后,会有如下的提示
curl -L https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20511 100 20511 0 0 3181 0 0:00:06 0:00:06 --:--:-- 37428
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
Installing RVM to /home/test/.rvm/
Adding rvm PATH line to /home/test/.profile /home/test/.bashrc /home/test/.zshrc.
Adding rvm loading line to /home/test/.bash_profile /home/test/.zlogin.
Installation of RVM in /home/teset/.rvm/ is almost complete:
* To start using RVM you need to run `source /home/test/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
# test,
#
# 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
* WARNING: You have '~/.profile' file, you might want to load it,
to do that add the following line to '/home/test/.bash_profile':
source ~/.profile
/home/test/.bashrc:10:export PATH=/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/test/bin:${M2_HOME}/bin
* WARNING: Above files contains `PATH=` with no `$PATH` inside, this can break RVM,
for details check https://github.com/wayneeseguin/rvm/issues/1351#issuecomment-10939525
to avoid this warning append #PATH.