Skip to content

Instantly share code, notes, and snippets.

@mdemare
Created June 6, 2012 11:07
Show Gist options
  • Save mdemare/2881299 to your computer and use it in GitHub Desktop.
Save mdemare/2881299 to your computer and use it in GitHub Desktop.
How to fix: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
FIXME:
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
or
libxml_ruby.bundle: dlsym(0x10fde1900, Init_libxml_ruby): symbol not found
gem uninstall nokogiri libxml-ruby
brew update
brew uninstall libxml2
brew install libxml2 --with-xml2-config
brew link libxml2
brew install libxslt
brew unlink libxslt
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26
sources:
https://gist.github.com/746966
https://gist.github.com/1226596
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment