Skip to content

Instantly share code, notes, and snippets.

@xabikip
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xabikip/f3e473eb25eb789be10c to your computer and use it in GitHub Desktop.
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.
# 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