On macOS Sierra 10.12, I ran into issues updating my gems that relied on Nokogiri due to the following error with the OS libxml2 version.
Installing libxml2
I’ve found installing libxml2
from homebrew to work in the past:
Finally, you’ll need to do one of two things depending on how you are performing the update:
Bundler
With Bundler, you need to instruct it to configure Nokogiri builds to use our newly installed libxml2 library:
On the next run of bundle update
, it should install correctly
Rubygems
A gem install allows you to pass in the configuration options to the native extension using --
: