首先下载ImageMagick源码包
tar xvfz ImageMagick-6.6.9-5.tar.gz
cd ImageMagick-6.6.9-5export CPPFLAGS=-I/home/admin/ImageMagick_build/include
export LDFLAGS=-L/home/admin/ImageMagick_build/lib
./configure --prefix=/home/admin/ImageMagick_build/ --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
make
sudo make install