1.在finder菜單欄點擊前往叙量,輸入 ‘/etc’肉迫,查找hosts文件弄跌,復制去其他文件目錄保留原件
2.打開更改hosts,在最后一行添加“199.232.28.133 raw.githubusercontent.com”
image
3.執(zhí)行命令
curl -L https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
4.執(zhí)行命令
source /Users/allen/.rvm/scripts/rvm
5.查看是否安裝成功 rvm -v
allen@alleniMac ~ % 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 24532 100 24532 0 0 26504 0 --:--:-- --:--:-- --:--:-- 26492
Downloading https://github.com/rvm/rvm/archive/1.29.12.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asc
Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asc',
but no GPG software exists to validate it, skipping.
Installing RVM to /Users/allen/.rvm/
Adding rvm PATH line to /Users/allen/.profile /Users/allen/.mkshrc /Users/allen/.bashrc /Users/allen/.zshrc.
Adding rvm loading line to /Users/allen/.profile /Users/allen/.bash_profile /Users/allen/.zlogin.
Installation of RVM in /Users/allen/.rvm/ is almost complete:
* To start using RVM you need to run `source /Users/allen/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
Thanks for installing RVM ??
Please consider donating to our open collective to help us maintain RVM.
?? Donate: https://opencollective.com/rvm/donate