Archive for March 9th, 2006

jpeglib & imagemagick compilation problem (and solution)

Thursday, March 9th, 2006

I was trying to build ImageMagick on my server today (ooops, forgot to built it when installing everything else the day I got my new Mac at work). Actually the compilation process is pretty easy but this time it gave my some unpleasant minutes.

The problem was that I was getting
checking if JPEG package is complete... no -- some components failed test error when running ImageMagick's configure.

Tried to reinstall jpeglib, 2 times hehe :) With no resolution. Then decided to check the Internet and found an advice to check the config.log file.

Checked it and found one interesting thing in the part where availability of jpeglib was checked. The error was that libjpeg.a library was outdated with suggestion to run ranlib on it.

And that was exactly what I have done:

#ranlib /usr/local/lib/libjpeg.a

And the problem was solved.
If you're still here with me, it means you have a future as a unix system admin, whatever it means to you :)