Skip to content

Instantly share code, notes, and snippets.

@paul91
Last active September 20, 2020 17:02
Show Gist options
  • Save paul91/9008409 to your computer and use it in GitHub Desktop.
Save paul91/9008409 to your computer and use it in GitHub Desktop.

Revisions

  1. paul91 revised this gist Mar 24, 2015. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions GraphicsMagick.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,20 @@
    #!/bin/bash

    # Install build dependencies
    yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel

    # Get GraphicsMagick source
    wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz
    tar zxvf GraphicsMagick-1.3.9.tar.gz

    # Configure and compile
    cd GraphicsMagick-1.3.9
    ./configure --enable-shared
    make
    make install

    # Ensure everything was installed correctly
    gm version

    # If you are going to use this with PHP you can also instal the pecl extension
    pecl install gmagick-1.0.8b2
  2. paul91 created this gist Feb 14, 2014.
    15 changes: 15 additions & 0 deletions GraphicsMagick.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/bin/bash

    yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel

    wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz
    tar zxvf GraphicsMagick-1.3.9.tar.gz

    cd GraphicsMagick-1.3.9
    ./configure --enable-shared
    make
    make install

    gm version

    pecl install gmagick-1.0.8b2