Skip to content

Instantly share code, notes, and snippets.

@fernandes
Last active August 29, 2015 14:23
Show Gist options
  • Save fernandes/d3bf92ade7047c24994d to your computer and use it in GitHub Desktop.
Save fernandes/d3bf92ade7047c24994d to your computer and use it in GitHub Desktop.
Compile nokogiri with native libs
# Operating System: OSX 10.10.3
# Boxen + Brew
brew install libxml2 libxslt
gem install nokogiri -- \
--use-system-libraries \
--with-xml2-lib=/opt/boxen/homebrew/opt/libxml2/lib \
--with-xml2-include=/opt/boxen/homebrew/opt/libxml2/include/libxml2 \
--with-xslt-lib=/opt/boxen/homebrew/opt/libxslt/lib \
--with-xslt-include=/opt/boxen/homebrew/opt/libxslt/include
bundle config build.nokogiri --use-system-libraries --with-xml2-include=/opt/boxen/homebrew/opt/libxml2/include/libxml2 --with-xml2-lib=/opt/boxen/homebrew/opt/libxml2/lib --with-xslt-lib=/opt/boxen/homebrew/opt/libxslt/lib --with-xslt-include=/opt/boxen/homebrew/opt/libxslt/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment