I\'m having troubles installing Nokogiri (1.6.8.1) on Mac OS Sierra 10.12.
I tried using brew install libxml2 libxslt and then referencing the install direc
brew install libxml2 libxslt
The more simple solution is to execute:
xcode-select --install gem install nokogiri
Update
For Mojave I'm using gem install nokogiri -v '1.6.6.2' -- --use-system-libraries
gem install nokogiri -v '1.6.6.2' -- --use-system-libraries