I try to clone this repo and run bundle install. The bundle process failed and throw this error:
bundle install
... Installing nokogiri 1.6.2.1 with na
What worked for me (on macOS Sierra) was a combination of Sam's answer and the following:
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 --use-system-libraries