Created
May 19, 2017 20:42
-
-
Save asmallteapot/705906ad56c457522404f9ee1aeb02bd to your computer and use it in GitHub Desktop.
Building nokogiri on macOS Sierra using bundler and homebrewed libxml2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| gem 'nokogiri' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install libxml2 with homebrew | |
| brew install libxml2 | |
| # configure bundler to use homebrew's libxml2 when building nokogiri | |
| bundle config build.nokogiri --use-system-libraries --with-xml2-include=$(brew --prefix libxml2)/include/libxml2 | |
| # install nokogiri via bundler | |
| bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment