Last Updated: February 25, 2016
·
874
· pabloformoso

Nokogiri with Rails4 & Ruby2.0 issue on OSX

If you found your self with a trace like

/Users/pablo/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp//ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... ERROR, review 'tmp//ports/libxml2/2.8.0/configure.log' to see what happened

setting up a Rails4 app that requieres Nokogiri try:

NOKOGIRIUSESYSTEM_LIBRARIES=1 bundle install

works like charm for me.

Cheers!