Recently I’ve run into issues with inconsistent ImageMagick installations, which mainly manifest in the form of fonts for annotations etc not working properly, or missing delegates.
Finally I got fed up with repeating this drama every time, so in addition to updating my stack scripts I have put together a script which does all the ImageMagick stuff in one hit, for those one-off installs.
This script installs:
- Ghostscript Fonts 8.11
- Freetype 2.4.1
- Fontconfig 2.8.0
- Ghostscript 8.71
- JPEG Lib 8b
- Zlib 1.2.5
- libTiff 3.8.2
- libpng 1.4.3
- and finally, ImageMagick 6.6.3-1
Download it here.
To run (with extra automagical):
wget -O- http://shares.amasses.net/image_magick_installer | sudo sh
To run (normally…):
chmod +x image_magick_installer sudo ./image_magick_installer
And then to test the install:
convert -v
I have found that occasionally there are errors like:
error while loading shared libraries: libMagickCore.so.4: cannot open shared object file: No such file or directory
Try running the following, and if it works, put it into a .sh file in /etc/profile.d (e.g. /etc/profile.d/image_magick_ldd.sh):
#!/bin/sh export LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" export LD_LIBRARY_PATH="/usr/local/lib" ldd /usr/local/bin/convert > /dev/null
Enjoy