标签:imagick
1013 cd /usr/local/src/
1014 wget http://www.imagemagick.org/download/ImageMagick.tar.gz
1015 tar zxvf ImageMagick.tar.gz
1018 cd ImageMagick-7.0.5-5/
1019 ./configure --prefix=/usr/local/imagemagick
1020 make && make install
1021 export PKG_CONFIG_PATH=/usr/local/imagemagick/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/imagemagick
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 命令查看加载的模块
本文出自 “yanzi” 博客,请务必保留此出处http://daddysgirl.blog.51cto.com/1598612/1921591
标签:imagick
原文地址:http://daddysgirl.blog.51cto.com/1598612/1921591