Skip to content

Instantly share code, notes, and snippets.

@rantler
Created August 30, 2013 21:24
Show Gist options
  • Save rantler/6394418 to your computer and use it in GitHub Desktop.
Save rantler/6394418 to your computer and use it in GitHub Desktop.
Fixes "Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0"
brew install libxml2 libxslt
brew link --force libxml2 libxslt
cd /tmp
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
tar xvfz libiconv-1.13.1.tar.gz
cd libiconv-1.13.1
./configure --prefix=/usr/local/Cellar/libiconv/1.13.1
make
sudo make install
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 \
--with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include \
--with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
@rantler
Copy link
Author

rantler commented Aug 30, 2013

It seems that beacon and some other projects still complain. Oh well. :\

@Astr0surf3r
Copy link

+1
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.1
BuildVersion: 13B42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment