Skip to content

Instantly share code, notes, and snippets.

@daz
Created March 8, 2018 07:02
Show Gist options
  • Save daz/4d6c73ea48164feb4be0ea9fc13ef6e9 to your computer and use it in GitHub Desktop.
Save daz/4d6c73ea48164feb4be0ea9fc13ef6e9 to your computer and use it in GitHub Desktop.
Nokogiri on macOS
brew install libxml2
# If installing directly
gem install nokogiri -- --use-system-libraries \
--with-xml2-include=$(brew --prefix libxml2)/include/libxml2
# If using Bundle
bundle config build.nokogiri --use-system-libraries \
--with-xml2-include=$(brew --prefix libxml2)/include/libxml2
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment