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