1013 cd /usr/local/src/
1014 wget http://www.p_w_picpathmagick.org/download/ImageMagick.tar.gz
1015 tar zxvf ImageMagick.tar.gz
1018 cd ImageMagick-7.0.5-5/
1019 ./configure --prefix=/usr/local/p_w_picpathmagick
1020 make && make install
1021 export PKG_CONFIG_PATH=/usr/local/p_w_picpathmagick/lib/pkgconfig/ (yum install ImageMagick ImageMagick-devel)
1024 wget http://pecl.php.net/get/imagick-3.0.1.tgz
1038 cp /home/wwwroot/git/imagick-3.0.1.tgz ./
1039 tar zxvf imagick-3.0.1.tgz
1051 ./configure --prefix=/usr/local/p_w_picpathmagick
1052 make
1053 make install
1054 php -m|grep imagick
1055 /usr/local/php/bin/pecl install imagick
...............
Build process completed successfully
產生的imagick.so文件拷貝到/usr/local/php//lib/php/extensions/no-debug-non-zts-20131226下
在php.ini文件裏添加imagick.so
而後重啓php加載imagick模塊便可。
使用/usr/local/php/bin/php -m 命令查看加載的模塊php