/nginx-start
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php-fcgi/extensions/no-debug-non-zts-20060613/magickwand.so' - /usr/local/php-fcgi/extensions/no-debug-non-zts-20060613/magickwand.so: cannot open shared object file: No such file or directory in Unknown on line 0
spawn-fcgi.c.197: child spawned successfully: PID: 25835
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php-fcgi/extensions/no-debug-non-zts-20060613/magickwand.so' - /usr/local/php-fcgi/extensions/no-debug-non-zts-20060613/magickwand.so: cannot open shared object file: No such file or directory in Unknown on line 0
spawn-fcgi.c.197: child spawned successfully: PID: 25872
我的编译过程
第一步,下载编译ImageMagick.
注意要点,1、版本,版本要和下面的Magickwand兼容,否则编译中会出错。2,加入--enable-shared --with-modules 选项,否则
可能最后MagickWand for PHP无法编译成功。 http://image_magick.veidrodis.com/image_magick/ImageMagick-6.3.3-10.tar.bz2
tar xvf ImageMagick-6.3.3-10.tar.bz2
cd ImageMagick-6.3.3-10
./configure --enable-shared --enable-lzw --without-perl --with-modules
make
make install
编译完成
第二步,安装 Magickwand for PHP
tar xvf MagickWandForPHP-1.0.4.tar.bz2
cd MagickWandForPHP-1.0.4
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --enable-shared --with-magickwand=/usr/local
make