安装 brew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
或者
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
?
?
class="shell">brew tap homebrew/dupes && brew install apple-gcc42 brew install autoconf automake libtool pkg-config libyaml readline libksba openssl
?
?
安装rvm
monospace; font-size: 12px; line-height: 18px; background-color: #fafafa;">curl?-L?https://get.rvm.io?|?bash?-s?stable
?
安装ruby
rvm install 2.0.0
?
安装rubygems
rvm rubygems 2.1.3
?