为了安装Jekyll 使用gem Ruby 社区的 Gem 托管服务
一、更新
sudo gem update
gem -v
Fetching: nokogiri-1.8.1.gem (100%)
ERROR: Error installing nokogiri:
nokogiri requires Ruby version >= 2.1.0.
安装失败
二、重新安装新版本Ruby
1、brew install ruby
Warning: You are using OS X 10.12. We do not provide support for this pre-release version. You may encounter build failures or other breakages. Please create pull-requests instead of filing issues. ==> Installing dependencies for ruby: readline, libyaml ==> Installing ruby dependency: readline ==> Downloading https://ftpmirror.gnu.org/readline/readline-6.3.tar.gz Already downloaded: /Users/sz/Library/Caches/Homebrew/readline-6.3.8.tar.gz ==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc54 curl: (22) The requested URL returned error: 404 Not Found Error: Failed to download resource "readline--patch" Download failed: https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff