Skip to content

Instantly share code, notes, and snippets.

@dcorrigan
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcorrigan/298aed438c4c3738dfff to your computer and use it in GitHub Desktop.
Save dcorrigan/298aed438c4c3738dfff to your computer and use it in GitHub Desktop.
Install Nokogir + RMagick on MAC OSX 10.9

Transmog install on OSX 10.9

NOKOGIRI

  1. git checkout 2.8.0 v of libxml2 for home-brew: https://coderwall.com/p/7urjcg

  2. brew install libxslt libiconv

  3. do not brew link libxslt

  4. do brew link libiconv (or, at least, it’s linked right now and working)

  5. configure bundler with the following: bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2 --with-xslt-include=/usr/local/opt/libxslt/include/"

  6. set env variable NOKOGIRI_USE_SYSTEM_LIBRARIES=1. Probably redundant with the above, but just for kicks.

  7. bundle install, cross your fingers

RMAGICK

  1. brew install imagemagick

  2. brew install pkg-config

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