Skip to content

Instantly share code, notes, and snippets.

@spadin spadin/install-nokogiri.md
Last active Aug 29, 2015

Embed
What would you like to do?
Install Nokogiri on Mac w/Homebrew
xml2_dir=`brew info libxml2 | grep $(brew --cellar) | sed 's/ .*//'`
xslt_dir=`brew info libxslt | grep $(brew --cellar) | sed 's/ .*//'`

gem install nokogiri -- --use-system-libraries \
                        --with-xml2-config=${xml2_dir}/bin/xml2-config \
                        --with-xslt-config=${xslt_dir}/bin/xslt-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.