1.下载源码包:
git clone http://git.imagemagick.org/repos/ImageMagick.git
2.编译安装:
cd ImageMagick/
./configure --prefix=/usr/local/Cellar/imagemagick/7.0.1-3/ --enable-shared --enable-static --without-perl
make && make install
3.设置环境变量:
sudo ln -sf /usr/local/Cellar/imagemagick/7.0.1-3/bin/* /usr/local/bin
备注:在做环境变量设置的时候应该先确定convert命令在哪个路径。即:which convert
设置完需要进行版本的验证:convert -version
Centos6.5编译安装请移步:http://www.cnblogs.com/songqingbo/p/5464754.html