title: RMagick error installing Redmine on Windows
body: <p>I'm trying to upgrade my Redmine installation to the latest.
  I updated ruby, rails, and gem as required.</p>
  
  <pre><code>current trunk  |  ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7  |  Rails 3.2.6   |  RubyGems &lt;= 1.8
  </code></pre>
  
  <p>Issuing the <code>rake db:migrate</code> command it gives me the following error:</p>
  
  <blockquote>
    <p>C:\ruby-apps\RedMine>rake db:migrate RAILS_ENV=production<br>
    ←[31mCould not find gem 'rmagick (>= 2.0.0) x86-mingw32' in the gems available on this machine.←[0m<br>
    ←[33mRun <code>bundle install</code> to install missing gems.←[0m</p>
  </blockquote>
  
  <p>So I installed rmagick for win32 and listing installed gems I see :</p>
  
  <blockquote>
    <p>...<br>
    railties (3.2.6)<br>
    rake (0.9.2.2)<br>
    rdoc (3.12)<br>
    rmagick (2.12.0 mswin32)<br>
    ruby-openid (2.1.8)<br>
    rubygems-update (1.8.24)<br>
    ...</p>
  </blockquote>
  
  <p>But <code>rake db:migrate</code> still give me the same error, so I tried <code>bundle install</code>, but I get:</p>
  
  <blockquote>
    <p>Temporarily enhancing PATH to include DevKit...<br>
    Building native extensions.  This could take a while...<br>
    ERROR:  Error installing rmagick:<br>
           ERROR: Failed to build gem native extension.  </p>
  
  <pre><code>   C:/Ruby193/bin/ruby.exe extconf.rb  
  </code></pre>
    
    <p>checking for Ruby version >= 1.8.5... yes<br>
    checking for stdint.h... <strong>* extconf.rb failed *</strong><br>
    Could not create Makefile due to some reason, probably lack of<br>
    necessary libraries and/or headers.  Check the mkmf.log file for more<br>
    details.  You may need configuration options.  </p>
  </blockquote>
  
  <p>Any ideas on how to get out of this?</p>