ImageMagick & RMagick

ImageMagick lenny package sucks. Espacially if You want RMagick gem on the box. Here is how to get it working:

Install required packages

user@computer:$ apt-get install libfreetype6-dev gsfonts libpng12-dev libjpeg62-dev libpng12-dev libjpeg62-dev

Download, compile and install ImageMagick

user@computer:$ cd /usr/local/src/
wget http://ftp.nluug.nl/ImageMagick/ImageMagick-6.6.1-8.tar.gz
tar -zxf ImageMagick-6.6.1-8.tar.gz
cd ImageMagick-6.6.1-8
./configure --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=/usr/share/fonts/type1/gsfonts/
make
make install

Finally, install RMagick gem

user@computer:$ gem install rmagick

Configure dynamic linker run time bindings

user@computer:$ ldconfig /usr/local/lib

Test

user@computer:$ irb -rubygems -r RMagick
irb(main):001:0> quit

You’re done.

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit
  • http://www.google.com/profiles/MateuszDraco MateuszDraco

    Thx! Without ldconfig it wasn’t working :)

  • Guest

    would you like to explain why the lenny packages suck? Did you file a bugreport, if there is a problem with them? And what about lenny-backports? Maybe youcould help the maintainer to provide a better package?
    THANKS!

    • Anonymous

      Try to install RMagic with APT version of ImageMagic installed. I have to admit I did not try Backports when writhing this up.