title: Imagemagick cannot be installed on windows server
body: <p>here is my ruby version:</p>
  
  <pre><code>ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
  </code></pre>
  
  <p>I have a peculiar problem, here is what I am trying:
      gem install rmagick --platform=ruby -- --with-opt-lib="c:\Program Files (x86)\ImageMagick-6.7.7-Q8\lib" --with-opt-include="c:\Program Files (x8
          6)\ImageMagick-6.7.7-Q8\include" --with-opt-dir="C:\Program Files (x86)\ImageMagick-6.7.7-Q8"</p>
  
  <p>I have installed ImageMagick exe file without problem in c:\Program Files (x86)\ImageMagick-6.7.7-Q8</p>
  
  <p>when I want to install with gems, I get error:</p>
  
  <pre><code>extconf.rb failed
  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 ma
  need configuration options.
  </code></pre>
  
  <p>Then I go and check the mkmf.log, here I see that it cannot read the library:</p>
  
  <pre><code>have_library: checking for main() in -lCORE_RL_magick_... -------------------- no
  </code></pre>
  
  <p>I am going to the lib directory of Imagemagick and here is what I have:</p>
  
  <pre><code>CORE_RL_magick_.lib
  CORE_RL_Magick++_.lib
  CORE_RL_wand_.lib
  X11.lib
  </code></pre>
  
  <p>does it mean one of my lib libraries are missing or does it mean it cannot read them? I am totally frustrated.</p>
  
  <p>this also does not work for me:</p>
  
  <p><a href="http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows" rel="nofollow">http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows</a></p>