Last active
December 27, 2015 01:49
-
-
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
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
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