manually. / configure "include" and "lib" locations helped me. The original libxml2 layout is a bit strange, so I got the same options:
gem install nokogiri -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib
Of course, version numbers depend on what is actually installed . at the time of this writing, the version was in brew.
in my case /usr/local/Cellar/libxml2/2.9.1/include/libxml2 contains one directory named libxml and /usr/local/Cellar/libxml2/2.9.1/lib contains libxml2.2.dylib libxml2.a libxml2.dylib pkgconfig xml2Conf.sh : this is what the script is looking for, no other combination has compiled it using system libraries.
using homebrew nokogiri can be installed without the outdated and incompatible libxml2 and libxslt libraries, as indicated in this gist . working fine and fast for me.
jitter
source share