Skip to content

Instantly share code, notes, and snippets.

@jonathan-beebe
Created July 14, 2016 23:56
Show Gist options
  • Select an option

  • Save jonathan-beebe/681137371075d72249922ffa991dfff7 to your computer and use it in GitHub Desktop.

Select an option

Save jonathan-beebe/681137371075d72249922ffa991dfff7 to your computer and use it in GitHub Desktop.
Fixing nokogiri on OS X 10.12 El Capitan
gem install nokogiri -v '1.6.8' -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2
@sesam
Copy link

sesam commented Oct 14, 2016

For Sierra (10.12) I replaced 10.11 with 10.12 (doh!), so:

´´´´´
gem install nokogiri -v '1.6.8' -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
´´´´´

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