rmagick on 11.3

Hi !

I would like to install the rmagick gem under ruby ree-1.8.7. Like every time, the installation routine does complain about two different version being installed which are actually the same. I have every, really every imagemagick package installed:

ImageMagick-6.6.1.0-3.8.i586
GraphicsMagick-1.3.12-1.15.i586
libMagick++3-6.6.1.0-3.8.i586
libGraphicsMagick3-1.3.12-1.15.i586
libGraphicsMagick++-devel-1.3.12-1.15.i586
ImageMagick-extra-6.6.1.0-3.8.i586
libGraphicsMagickWand2-1.3.12-1.15.i586
libMagickWand3-6.6.1.0-3.8.i586
libMagick++-devel-6.6.1.0-3.8.i586
GraphicsMagick-devel-1.3.12-1.15.i586
libMagickCore3-6.6.1.0-3.8.i586
ImageMagick-devel-6.6.1.0-3.8.i586
libGraphicsMagick++3-1.3.12-1.15.i586

but still all I get is this:

gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
        ERROR: Failed to build gem native extension.

/home/helmerj/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby 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/bin/Magick-config reports version 6.6.1 Q16 is installed in /usr
         /usr/bin/X11/Magick-config reports version 6.6.1 Q16 is installed in /usr
Using 6.6.1 Q16 from /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... yes
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.

*** 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=/home/helmerj/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby
        --with-MagickCorelib
        --without-MagickCorelib
        --with-Magicklib
        --without-Magicklib
        --with-Magick++lib
        --without-Magick++lib


Gem files will remain installed in /home/helmerj/.rvm/gems/ree-1.8.7-2010.02/gems/rmagick-2.13.1 for inspection.
Results logged to /home/helmerj/.rvm/gems/ree-1.8.7-2010.02/gems/rmagick-2.13.1/ext/RMagick/gem_make.out

Anybody know how to get around this?

Cheers J.

On my installation there is nothing under X11; so I presume the sensible thing is to get rid of everything under X11.

I just had to solve this same problem. It’s not that you don’t have ImageMagick Installed correctly, but its a newer version then what rmagick can handle. You need to install at least 6.4.x manually from source. At least thats what I had to do. Maybe you could get the latest rmagick from source and try that instead, but installing an older version of ImageMagick worked for me.

(Check out the mkmf.log file to see the actual errors from the build)