GraphicsMagick官网地址:http://www.graphicsmagick.org/
项目地址:http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/
#安装一些依赖库
yum install -y libpng-devel libpng libjpeg libjpeg-devel libpng libpng-devel libtiff-devel libtiff libwmf-devel libwmf libxml2-devel libxml2 zlib-devel zlib gd-devel gd bzip2 bzip2-devel libzip-devel libzip
#编译安装 zlib-1.2.5(注意:源码下下来后,发现解压有问题(解压失败),于是乎我在Windows下解压,然后再压缩成 .zip文件,再传到 Linux服务器,unzip命令解压成功!)
cd /usr/local/src wget -c http://www.winimage.com/zLibDll/zlib-1.2.5.tar.gz tar -xzvf ./zlib-1.2.5.tar.gz cd ./zlib-1.2.5 ./configure --prefix=/usr make && make install
#编译安装 GraphicsMagick
cd /usr/local/src wget -c http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.19/GraphicsMagick-1.3.19.tar.gz/download tar -xzvf ./GraphicsMagick-1.3.19.tar.gz cd ./GraphicsMagick-1.3.19 ./configure --without-prel --enable-shared --disable-openmp make && make install