I
Irfan Ahmad
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,
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,