Skip to content

Instantly share code, notes, and snippets.

@boldt
Forked from paul91/GraphicsMagick.sh
Last active December 20, 2017 15:56
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 boldt/c1dde964399ce4b45e1f to your computer and use it in GitHub Desktop.
Save boldt/c1dde964399ce4b45e1f to your computer and use it in GitHub Desktop.
How to install GraphicsMagick on CentOS 6.7
#!/bin/bash
# Install build dependencies
yum install -y gcc libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
wget http://skylink.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.23/GraphicsMagick-1.3.23.tar.gz
tar zxvf GraphicsMagick-1.3.23.tar.gz
# Configure and compile
cd GraphicsMagick-1.3.23
./configure --enable-shared
make
make install
# Will be installed under /usr/local/bin, thus we must add it to the global PATH
echo 'pathmunge /usr/local/bin' > /etc/profile.d/usr_local_bin.sh
chmod +x /etc/profile.d/usr_local_bin.sh
# Ensure everything was installed correctly
bash
gm version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment