This assumes you already have XCode installed, and have a project ready to go with a working Gemfile.
There’s more info at: https://help.github.com/articles/using-jekyll-with-pages/
- Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Bundler:
sudo gem install bundler
- Install libxml2 + libxslt:
brew install libxml2 libxslt
- Install nokogiri:
sudo env ARCHFLAGS="-arch x86_64" gem install nokogiri -- --use-system-libraries -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.2/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.2/lib --with-xslt-lib=/usr/local/lib --with-xslt-include=/usr/local/include
- Install everything else:
bundler install