安装 brew
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/dupes && brew install apple-gcc42 brew install autoconf automake libtool pkg-config libyaml readline libksba openssl
安装rvm
curl -L https://get.rvm.io | bash -s stable
安装ruby
rvm install 2.0.0
安装rubygems
rvm rubygems 2.1.3