Skip to content

Instantly share code, notes, and snippets.

@rgo
Created March 8, 2012 10:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rgo/2000218 to your computer and use it in GitHub Desktop.
Save rgo/2000218 to your computer and use it in GitHub Desktop.
Compile latest ImageMagick version (useful for old distros)
## From http://johannes.jarolim.com/blog/2011/11/21/extreme-slow-imagemagick-on-vps-with-ubuntu/
#
# Execute as root
apt-get update
apt-get install build-essential
apt-get build-dep imagemagick
cd /usr/local/src
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar xvfz ImageMagick.tar.gz
cd ImageMagick-6.x.x
# NOTE: The only thing I did was to remove all X11-Options (my VPS is a headless system without GUI) and adding the initially recommended –disable-openmp option.
./configure '--prefix=/usr' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-magick-plus-plus' '--with-djvu' '--enable-shared' '--without-dps' '--without-fpx' '--with-perl-options=INSTALLDIRS=vendor' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' '--disable-openmp'
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment