Skip to content

Instantly share code, notes, and snippets.

@seabre
Created July 29, 2013 16:41
Show Gist options
  • Save seabre/6105686 to your computer and use it in GitHub Desktop.
Save seabre/6105686 to your computer and use it in GitHub Desktop.
Homebrew Quirks With Nokogiri And MySQL on OS X

Nokogiri (v1.5.0, specifically):

Mostly follow instructions from here. libxml2, libiconv, and libxslt library versions will probably be different, but to install with those libraries in general, run:

gem install nokogiri -v '1.5.0' -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib

MySQL:

http://www.randomactsofsentience.com/2013/05/gem-install-mysql2-missing-mysqlh-on-os.html

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