Skip to content

Instantly share code, notes, and snippets.

@Starefossen
Created November 11, 2014 21:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Starefossen/42c665b536c14ea112ac to your computer and use it in GitHub Desktop.
Save Starefossen/42c665b536c14ea112ac to your computer and use it in GitHub Desktop.
Build ImageMagick from source
#!/bin/bash
magick_version=6.8.9-10
magick_install_dir="$HOME/image_magick"
magick_download_url="http://imagemagick.org/download/releases/ImageMagick-$magick_version.tar.gz"
rm -rf $magick_install_dir/*
mkdir -p $magick_install_dir && cd $magick_install_dir
curl -L $magick_download_url | tar -zxf-
cd ImageMagick*
./configure \
--prefix=$magick_install_dir
--disable-static \
--enable-shared \
--with-jp2 \
--with-jpeg \
--with-png \
--with-quantum-depth=8 \
--with-rsvg \
--with-webp \
--without-bzlib \
--without-djvu \
--without-dps \
--without-fftw \
--without-fontconfig \
--without-freetype \
--without-gvc \
--without-jbig \
--without-lcms \
--without-lcms2 \
--without-lqr \
--without-lzma \
--without-magick-plus-plus \
--without-openexr \
--without-pango \
--without-perl \
--without-tiff \
--without-wmf \
--without-x \
--without-xml \
--without-zlib
make
make install
ldconfig /usr/local/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment