title: How to install the Nokogiri gem using Ruby 1.9.3
body: <p>I'm using Ruby 1.9.3 with my Rails v3.2.19 application and I'm unable to run bundle because Nokogiri requires a Ruby version >= 2.1.0. At the moment I cannot upgrade my Ruby version and I really need to install Nokogiri otherwise my app won't run.</p>
  
  <p>Besides the regular solutions using <code>gem install</code>, I've already tried the following command line with no success:</p>
  
  <pre><code>gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2
  
  ERROR: 
  &gt;Error installing nokogiri:
  nokogiri requires Ruby version &gt;= 2.1.0.
  </code></pre>
  
  <p>Is there a way that I can install Nokogiri using my current Ruby version?</p>
  
  <p>Additional Info:</p>
  
  <ul>
  <li>Rails version - 3.2.19</li>
  <li>Ruby version - 1.9.3</li>
  <li>Nokogiri version - 1.7.0.1</li>
  <li>OS - CentOS 7</li>
  </ul>