Created
December 8, 2013 00:20
-
-
Save bhdouglass/7851749 to your computer and use it in GitHub Desktop.
Install graphics magick & it's php extension from source
This file contains 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
# Install graphics magick v1.3.18 from source (run as root) | |
# Install dependencies | |
apt-get build-dep graphicsmagick -y | |
# Download source | |
wget http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.18/GraphicsMagick-1.3.18.tar.bz2 | |
tar -xvjf GraphicsMagick-1.3.18.tar.bz2 | |
cd GraphicsMagick-1.3.18 | |
# Make & install | |
./configure --enable-shared --prefix=/usr | |
make | |
make install | |
# Install gmagick for php | |
pecl install gmagick-beta | |
echo "extension=gmagick.so" > /etc/php5/conf.d/gmagick.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful, you save my life !