-
-
Save boldt/c1dde964399ce4b45e1f to your computer and use it in GitHub Desktop.
How to install GraphicsMagick on CentOS 6.7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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