Where developers come to connect, share, build and be inspired.

2

Get rid of Nokogiri LibXML warning on OSX Lion

3878 views


If you are a Rails developer on OSX Lion or Mountain Lion, you might have seen this:

WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.7.8

This happens because the Lion system default libxml2 (loaded at bootstrap) is used, regardless of which libxml2 Nokogiri was built against.

To get rid of the warning, (re)install the Nokogiri gem with:

gem install nokogiri -- --with-xml2-dir=/usr --with-xslt-dir=/opt/local --with-iconv-dir=/opt/local

Comments

Add a comment