Installing ImageMagick on OSX Leopard

I found a great script for compiling ImageMagick on OSX from scratch via ThoughtBot's Paperclip installation instructions.

Unfortunately it didnt work perfectly out of the box;

Undefined symbols:
“_iconv_close”, referenced from:
_opvp_to_utf8 in gdevopvp.o ...

So a few tweaks to the script to install libiconv too, as well as the latest stable ImageMagick and voila!;

Posted by

Comments (2)

Jan 31, 2010
flexd said...
I've got the same problem now, however i get the error when compiling ghostscript. I have libiconv installed as i read somewhere that would help. Any ideas what i might be missing?
Jan 31, 2010
Glenn Roberts said...
Hi,

Check your libiconv installation ( sudo find / -name 'libiconv*' ) . On my box (osx 10.5.x), its in a few places;
/lib/
/opt/local/lib/
/sw/lib/
/usr/local/lib/

Messy yes, but It seems MacPorts is responsible for a few of those - I don't remember installing it specifically, maybe it came with another port. see http://libiconv.darwinports.com/

Leave a comment...