Results 1 to 3 of 3

Thread: rmagick on 11.3

  1. #1

    Default 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:

    Code:
    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:

    Code:
    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.

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,439

    Default Re: rmagick on 11.3

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

  3. #3

    Default Re: rmagick on 11.3

    Quote Originally Posted by helmerj View Post
    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:

    Code:
    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:

    Code:
    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.

    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)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •