Forked from vparihar01/nokogiri_libxml_homebrew_lion_installation.sh
Last active
August 29, 2015 13:59
-
-
Save iwan/10682698 to your computer and use it in GitHub Desktop.
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
FIXME: | |
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 | |
or | |
ERROR -: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0 | |
gem uninstall nokogiri libxml-ruby | |
brew update | |
brew uninstall libxml2 | |
brew install libxml2 --with-xml2-config | |
brew link --force libxml2 # in case of: /usr/local/lib/pkgconfig is not writable. You should change its permissions: sudo chmod a+w /usr/local/lib/pkgconfig | |
brew install libxslt | |
brew link --force libxslt | |
bundle config build.nokogiri -- --with-xml2-dir=/usr --with-xslt-dir=/opt/local --with-iconv-dir=/opt/local | |
bundle install | |
or | |
gem install nokogiri |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment