Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
VERSION = "6.7.9-0"
wget -q http://www.imagemagick.org/download/ImageMagick-$VERSION.tar.gz
tar zxf ImageMagick-$VERSION.tar.gz
cd ImageMagick-$VERSION
# 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'
./configure
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment