I have been trying for quite some time to get RMagick to install on my
Ubuntu 10.4 machine. For the life of me, I can’t get it to install,
current version or older versions. I’ve looked around online and tried
everything I’ve seen with no luck.
Via Synaptic Package Manager, I have installed:
librmagick-ruby
librmagick-ruby-doc
librmagick-ruby1.8
and every other graphicsmagick/imagemagick package I can find.
I also have libmagickwand2 since my error seems to be referring to the
mysterious MagickWand.h file.
Can’t install RMagick 2.13.1. Can’t find MagickWand.h.
*** extconf.rb failed ***
This is very frustrating because I need to support a website by doing
Rails development on my local machine. The host also runs on Ubuntu,
perhaps version 7.x.x, so much older. The host has rmagick 1.15.15 and
it continues to work fine. Unfortunately, I cannot even start my local
webserver because of the rmagick dependency. It seems a waste of energy
to remove all the dependencies to rmagick since I ultimately need it.
Frankly, I’m almost to the point of not using rmagick-dependent gems.
I am worried that all my tries and failures have left me with a mucked
up system. Any help would be greatly valued. If you’ve been a
programmer for any length of time, I know you can relate to this type of
thing. Anyway, thanks for reading this.
Mario
From my console:
sudo gem install rmagick
Building native extensions. This could take a while…
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for Ruby version >= 1.8.5… yes
checking for gcc… yes
checking for Magick-config… yes
Warning: Found more than one ImageMagick installation. This could cause
problems at runtime.
/usr/local/bin/Magick-config reports version 6.5.5 Q16 is
installed in /usr/local
/usr/bin/Magick-config reports version 1.3.5 is installed in
/usr
Using 6.5.5 Q16 from /usr/local.
Warning: Found a partial ImageMagick installation. Your operating system
likely has some built-in ImageMagick libraries but not all of
ImageMagick. This will most likely cause problems at both compile and
runtime.
Found partial installation at: /usr
checking for ImageMagick version >= 6.4.9… yes
checking for HDRI disabled version of ImageMagick… yes
checking for stdint.h… yes
checking for sys/types.h… yes
checking for wand/MagickWand.h… no
Can’t install RMagick 2.13.1. Can’t find MagickWand.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.
Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=/usr/bin/ruby1.8
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out