Skip to content

Instantly share code, notes, and snippets.

@Bauerpauer
Forked from paul91/GraphicsMagick.sh
Created October 26, 2015 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bauerpauer/d1225ab5fc8080c4c056 to your computer and use it in GitHub Desktop.
Save Bauerpauer/d1225ab5fc8080c4c056 to your computer and use it in GitHub Desktop.
How to install GraphicsMagick on CentOS 6.4
#!/bin/bash
# Install build dependencies
yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz
tar zxvf GraphicsMagick-1.3.9.tar.gz
# Configure and compile
cd GraphicsMagick-1.3.9
./configure --enable-shared
make
make install
# Ensure everything was installed correctly
gm version
# If you are going to use this with PHP you can also instal the pecl extension
pecl install gmagick-1.0.8b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment