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
./make
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/
./configure
./make
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)
./make
sudo make install
- compile again RMagick
- still not running? ...
I hope that helps
chris
1 comment:
Good for people to know.
Post a Comment