Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can also install Nokogiri on Mac OS X 10.9 <strong>Mavericks</strong> with full XCode Install using:</p> <pre><code>gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2 </code></pre> <h3>Update</h3> <p>For those using <strong>Yosemite</strong> the following command will work:</p> <pre><code>gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 --use-system-libraries </code></pre> <p>or, it might actually be in your <code>MacOSX10.11.sdk</code> folder (mine was as of 18-Sep-2015) anyways, so even if you are not yet fully up to El Capitan, I had recently updated XCode and you may need to use the El Capitan SDK path, which follows next:</p> <h3>Update</h3> <p>For those using <strong>El Capitan</strong> the following command will work:</p> <pre><code>gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 --use-system-libraries </code></pre> <h3>Update</h3> <p>For those using <strong>Sierra</strong> the following command will work:</p> <pre><code>gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 --use-system-libraries </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload