RVM

# Install pre-requirements
$ apt-get --no-install-recommends --yes install gawk libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgmp-dev libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev libgmp-dev libreadline-dev

$ \curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=bundler

$ rvm use 2.5 --default --install --binary --fuzzy

Bundle

Bundle config

一次执行终身受用!

$ bundle config mirror.https://rubygems.org https://gems.ruby-china.com

Nogokiri

$ gem install nokogiri

#在 OSX 上安装失败时,可以先尝试
$ xcode-select --install

HTTPd

$ ruby -run -ehttpd . -p8000