Saturday, February 26, 2011

Compiling Imagemagick on OSX

Instructions from matschaffer.com, reproduced here:

First get a copy of libjpeg and build it as a shared library:

    curl -O http://www.ijg.org/files/jpegsrc.v7.tar.gz
    tar -zxf jpegsrc.v7.tar.gz
    cd jpeg-7/
    ln -s `which glibtool` ./libtool
    ./configure --enable-shared --prefix=/usr/local
    make
    sudo make install

Now get a copy of ImageMagick:

    curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
    tar -zxf ImageMagick.tar.gz
    cd ImageMagick-*/
    ./configure --prefix=/usr/local
    make
    sudo make install
Don't forget you need XCode installed.