title: ERROR: Error installing rmagick: in Windows with Ruby 2.2
body: <p>I cloned my code from git to my Windows machine and when I run bundle install, I am getting this error:</p>
  
  <blockquote>
    <p>An error occurred while installing rmagick (2.13.4), and Bundler
    cannot continue. Make sure that <code>gem install rmagick -v '2.13.4'</code>
    succeeds before bundling.</p>
  </blockquote>
  
  <pre><code>D:\project\MyProject2&gt;gem install rmagick -v '2.13.4'
  </code></pre>
  
  <blockquote>
    <p>Temporarily enhancing PATH to include DevKit... Building native
    extensions.  This could take a while... ERROR:  Error installing
    rmagick:
            ERROR: Failed to build gem native extension.</p>
  
  <pre><code>D:/RailsInstaller/Ruby2.2.0/bin/ruby.exe -r ./siteconf20160721-7208-bn9t3e.rb extconf.rb checking for Ruby version
  </code></pre>
    
    <blockquote>
      <p>= 1.8.5... yes Invalid drive specification. Unable to get ImageMagick version
      <strong>* extconf.rb failed *</strong> Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check
      the mkmf.log file for more details.  You may need configuration
      options.</p>
    </blockquote>
  </blockquote>
  
  <p>I tried downloading ImageMagick, and set environment paths as:</p>
  
  <pre><code>CPATH=D:\ImageMagick-6.9.5-Q8\include
  LIBRARY_PATH=D:\ImageMagick-6.9.5-Q8\lib
  </code></pre>
  
  <p>and run bundle install but no use and also tried running</p>
  
  <pre><code>gem install rmagick  -v '2.13.4' --platform=ruby -- --with-opt-lib=D:\ImageMagick-6.9.5-Q8\lib --with-opt-include=D:\ImageMagick-6.9.5-Q8\include
  </code></pre>
  
  <p>it is showing:</p>
  
  <blockquote>
    <p>Unable to get ImageMagick version
    <strong>* extconf.rb failed *</strong> Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check
    the mkmf.log file for more details.  You may need configuration
    options.</p>
  </blockquote>
  
  <p>Please help.</p>