title: ImageMagick - "CORE_RL_magick_.dll not found" or how to install RMagick on windows with ruby 1.9.2
body: <p>I'm working on a Rail3 app.
  After struggling for several hours and finally installing the rmagick 2.13.1 gem without errors on win7x64 / ruby 1.9.2, I've run into another error. Yeah, I've heard that rails experience in windows could be painfull...</p>
  
  <p>I use carrierwave to process and upload images to  AWS S3.
  Processing looks like</p>
  
  <pre><code>class IconUploader &lt; CarrierWave::Uploader::Base
  
  require 'rmagick'
  include CarrierWave::RMagick
  ... 
  process :resize_to_fit =&gt; [100, 100]
  process :convert =&gt; :png
  ...
  </code></pre>
  
  <p>When I trigger file upload on my development machine, it throws me a windows popup, saying </p>
  
  <blockquote>
    <p>CORE_RL_magick_.dll not found</p>
  </blockquote>
  
  <p>Google wasn't really helpful on this one.</p>
  
  <p>I have my PATH variable set to C:/ruby192/ImageMagick - its where I have installed ImageMagick to. And this folder has several CORE_RL dlls including the <em>magick</em> one. <strong>The DLL's themselves are not missing!</strong></p>
  
  <p><code>irb &gt; require 'rmagick'</code> returns true
  and <code>convert -version</code> outputs this:</p>
  
  <pre><code>Version: ImageMagick 6.6.9-6 2011-04-14 Q16 http://www.imagemagick.org
  Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
  Features: OpenMP
  </code></pre>
  
  <p>So I have several question.</p>
  
  <ol>
  <li>How do I solve this?</li>
  <li><code>elseif</code> I don't, are there any other gems and/or graphic libraries that are supported by both windows and heroku?</li>
  <li><code>else</code> maybe there is a way to configure carrierwave, not to process images in dev environment</li>
  </ol>
  
  <p>So far I've tried ImageMagick v 6.6.9 32bit dll, which gives the CORE_RL dll error,
  64 bit static, which doesn't have dev headers to compile the rmagick gem, 
  and 64 bit dynamic, which gives me tonns of <code>undefined reference</code> errors during the gem compilation, every test, except the first one:</p>
  
  <pre><code>checking for snprintf() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
  checking for AcquireImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
  and so on...
  </code></pre>
  
  <p>Thanks everyone.</p>