Skip to content

Instantly share code, notes, and snippets.

@jbbarth
Last active December 27, 2015 01:49
Show Gist options
  • Save jbbarth/7247978 to your computer and use it in GitHub Desktop.
Save jbbarth/7247978 to your computer and use it in GitHub Desktop.
Fix nokogiri warnings about varying libxml2 versions and related deface defects on MacOSX
cd /path/to/your/rails/project
#install libxml2 v2.8.0 instead of 2.9+
cd $(brew --prefix)
git checkout $(brew versions libxml2 | grep 2.8.0 | sed -e 's/.*checkout//')
brew unlink libxml2
#now back to redmine dir
cd -
gem uninstall nokogiri
bundle config build.nokogiri -- --with-xml2-dir=/usr
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment