- 安装关联
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