Skip to content

Instantly share code, notes, and snippets.

@teeparham
Created November 22, 2013 17:33
Show Gist options
  • Select an option

  • Save teeparham/7603803 to your computer and use it in GitHub Desktop.

Select an option

Save teeparham/7603803 to your computer and use it in GitHub Desktop.
upgrade libxml2 and nokogiri, OSX
brew upgrade libxml2
brew cleanup
gem unin nokogiri
bundle config build.nokogiri --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2/ --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib/ --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28/ --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include/ --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib/
bundle install nokogiri
# same as above, but readable:
# bundle config build.nokogiri
# --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2/
# --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib/
# --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28/
# --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include/
# --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment