前置
brew install libyaml openssl readline
编译
./configure --prefix=/Users/yakir/local/ruby \
--disable-silent-rules \
--without-gmp \
--with-opt-dir=${BREW_OPT}/openssl:${BREW_OPT}/libyaml:${BREW_OPT}/readline && \
make -j12 && make install
更新gem
gem update --system
安装 rubygems
gem install cocoapods
gem install github-pages