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
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
irb(main):001:0> quit
You’re done.





