Last active
August 29, 2015 14:13
-
-
Save xabikip/f3e473eb25eb789be10c to your computer and use it in GitHub Desktop.
Install graphics magick & it's php extension from source. Gaur egun bertsio berriena 1.3.20 da.
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.20 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.20.tar.bz2 | |
tar -xvjf GraphicsMagick-1.3.20.tar.bz2 | |
cd GraphicsMagick-1.3.20 | |
# Make & install | |
./configure --enable-shared --prefix=/usr | |
make | |
make install | |
# Install gmagick for php | |
# If you don't have install pecl you need to install: apt-get install php-pear | |
pecl install gmagick-beta | |
# If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root | |
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