-
git checkout 2.8.0 v of libxml2 for home-brew: https://coderwall.com/p/7urjcg
-
brew install libxslt libiconv
-
do not brew link libxslt
-
do brew link libiconv (or, at least, it’s linked right now and working)
-
configure bundler with the following:
bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2 --with-xslt-include=/usr/local/opt/libxslt/include/"
-
set env variable
NOKOGIRI_USE_SYSTEM_LIBRARIES=1
. Probably redundant with the above, but just for kicks. -
bundle install, cross your fingers
-
brew install imagemagick
-
brew install pkg-config