Installing ImageMagick
From SoftwarePractice.org
ImageMagick is often recommended as the best image manipulation program for various web applications, so it's worth installing it. Most Unix utilities are a snap to install, but this one's a bit of a hassle, because it uses a load of other packages that have to be installed first. The following is what I did on a fresh FreeBSD6.0 installation. (Update: same thing worked on OS/X.)
- First, go get all of these packages. Best way of course is to use lynx on your remote server, to save a download and then another upload.
- Untar and then build them. It's the usual drill:
./configure make make install
except that
- for libjpeg you have to run make install-lib as well as make install
- for ImageMagick, you made need to be explicit about the include and library paths:
./configure CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib'
- ImageMagick may have some trouble with libjpeg -- check in config.log to see if it wants you to run ranlib. If so, before running make, do:
ranlib /usr/local/lib/libjpeg.a
Well, that wasn't so hard. After running the configure script for ImageMagick, just check through its output to see that it found all the libraries that you want.
