Skip to content

Instantly share code, notes, and snippets.

@mrqaidi
Forked from boldt/GraphicsMagick.sh
Created June 1, 2017 01:42
Show Gist options
  • Save mrqaidi/8e8d7fbb8badf81b69eaddf4cde7880f to your computer and use it in GitHub Desktop.
Save mrqaidi/8e8d7fbb8badf81b69eaddf4cde7880f 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