标签:设置 ssl bash ast nbsp move script arc info
curl -L https://get.rvm.io | bash -s stable //RVM安装
source ~/.rvm/scripts/rvm
rvm -v //版本检测
rvm list known //列出已知的ruby版本
rvm install 2.0.0 // install version
rvm list
rvm remove 1.9.2
rvm 2.0.0 --default //设置默认的版本
gem -v
------------ 国内网络墙的限制--------- so
因为Ruby的默认源使用的可能是cocoapods.org,国内访问这个网址有时候会有问题
gem source -r https://rubygems.org/
gem source -a https://ruby.taobao.org
验证替换成功 gem sources -l
1.删除旧的brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
2.安装新的brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install/uninstall git
brew search git
brew list/update/info
标签:设置 ssl bash ast nbsp move script arc info
原文地址:http://www.cnblogs.com/chims-liu-touch/p/6124924.html