curl -L get.rvm.io | bash -s stablecurl: (6) Couldn't resolve host 'get.rvm.io'
在浏览器上访问get.rvm.io,实际跳转到如下地址
/wayneeseguin/rvm/master/binscripts/rvm-installer
所以,修改命令:
curl -L /wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
安装成功之后,会有如下的提示
curl -L /wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable% Total % Received % Xferd Average Speed Time TimeTime CurrentDload Upload Total Spent Left Speed100 20511 100 20511 00 31810 0:00:06 0:00:06 --:--:-- 37428Downloading /wayneeseguin/rvm/archive/stable.tar.gzInstalling 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 /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 /wayneeseguin/rvm/issues/1351#issuecomment-10939525to avoid this warning append #PATH.