Thursday, February 26, 2009

Installing ImageMagick

So this is a bit of a technical post, I promise lighter fare in the near future..

I needed to install ImageMagick on a SLES 10 Sp2 box tonight and ran into a couple of minor hiccups.  Thought I would post them and the solutions I found in case someone else needs them.
First off I got this during make:

grep: /usr/lib/ No such file or directory
/usr/bin/sed: can't read /usr/lib/ No such file or directory
libtool: link: `/usr/lib/' is not a valid libtool archive

Fair enough, I was missing a development package.  Easily solved with:

yast2 -i libjpeg-devel

I ran make again without errors.  After running make install without errors I thought I was home free.  Then I got this error when testing the install with convert:
convert: error while loading shared libraries: cannot open shared object file: No such file or directory

Oops - needed to update the links with the following command:
ldconfig /usr/local/lib

Ran convert again and blammo, ImageMagick works. Hope this helps save someone a night of pain.


Anonymous said...

brief, but EXCELLENT EXCELLENT Article!! I think I could have spent hours and hours with this problem!! thanks for the tip!!! after "ldconfig" command everything went ok!!.. I'm trying to configure NagiosGrapher!


Jugg Monkey said...

Thanks! Glad you find the post useful.

Anonymous said...

Thanks! Helped me. Would ever have found your article without Google.

Anonymous said...

thanks, this did save me from a night of pain!

Cartman said...

Brilliant! Your answer is one google away and it worked for me!

Anonymous said...

Thank you very much!
I ran into the same problem - and you saved me with publishing your solution. :)


Anonymous said...

Thanks! This was the problem!!!

Unknown said...

Thanks, had spent hours trying to figure out the problem.

Anonymous said...

I'm running SLES 10 SP2 64-bit and needed to install the 32bit devel of libjpeg as well.