Tuesday, 28 August 2007

RMagick install from source in Debian Etch

Installing RMagick from sources (6.3.5)

1. Download the latest imagemagick from http://www.imagemagick.org/script/install-source.php#unix

- compile with follwoing options (assuming you don't need it for perl nor C++)

./configure --prefix=/opt/imagemagick --enable-shared --disable-static --without-perl --without-magick-plus-plus

of course you can change prefix or remove it when you want it to be isntalled by default

sudo make install

Make sure /opt/imagemagick/includes/lib is in your LD_LIBRARY_PATH
and /opt/imagemagick/bin in your PATH

2. Download the latest RMagick from http://rubyforge.org/projects/rmagick/


If at this stage you get errors like "unable to read font '(null)'":
- check first if your ImageMagick installation was successful running display command
- if running display you get "unable to find font .... helvetica ..." then you need to install fonts on your system
- if display runs fine but you still get the above error from one of ruby test scripts setting fonts options in ./configure of imagemagick might help
- try to configure again ImageMagick with following options:

./configure --prefix=/opt/imagemagick --enable-shared --disable-static --without-perl --without-magick-plus-plus  --with-gs_font-dir=/usr/share/fonts/type1/gsfonts --with-windows-font-dir=/home/chris/win_fonts

(applying appropriate paths)

sudo make install

- compile again RMagick
- still not running? ...

I hope that helps

1 comment:

Belita said...

Good for people to know.