From: Tim Hunter Date: 2008-01-20T05:21:58+09:00 Subject: Re: My experience of installing RMagick on windows Irfan Ahmad wrote: > Hi > I am trying to install RMagick 2.1.0 on Windows XP. I already have > installed the required version of ImageMagick. Here are the steps I > adopted. > > 1. I tried the command "gem install rmagick", I got this error message > > checking for Ruby version >= 1.8.2... yes > checking for stdint.h... no > checking for sys/types.h... no > checking for magick/MagickCore.h... no > Can't install RMagick 2.0.0. Can't find MagickCore.h. > > *** 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 may need configuration options. > > 2. I checked the "extconf.rb" file and I was astonished to see that the > path for ImageMagick and Ruby were hard coded. This is really a very bad > piece of coding. > > $CPPFLAGS = %Q{-I"C:\\Program Files\\Microsoft Platform SDK for > Windows Server 2003 R2\\Include" -I"C:\\Program > Files\\ImageMagick-#{$1}-Q8\\include"} > # The /link option is required by the Makefile but causes warnings in > the mkmf.log file. > $LDFLAGS = %Q{/link /LIBPATH:"C:\\Program Files\\Microsoft Platform > SDK for Windows Server 2003 R2\\Lib" /LIBPATH:"C:\\Program > Files\\ImageMagick-#{$1}-Q8\\lib" /LIBPATH:"C:\\ruby\\lib"} > $LOCAL_LIBS = 'CORE_RL_magick_.lib X11.lib' > > 3. I do not have ImageMagick and Ruby on these paths so I changed the > paths and tried to run the extconf.rb file manually. But it gave me the > same error. > > Can someone please help me installing RMagick for windows? > > Thanks, http://rmagick.rubyforge.org/install-faq.html#win This is the first result on Google for rmagick+install+windows -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html