#安装GraphicsMagick
cd /opt/src
sudo wget
cd /opt/build/
sudo tar xzf ../src/GraphicsMagick-1.3.12.tar.gz
cd GraphicsMagick-1.3.12/
sudo ./configure
sudo make
sudo make install
#安装php扩展:
cd /opt/src
sudo wget
cd /opt/build
sudo tar xzf ../src/gmagick-1.0.5b1.tgz
cd gmagick-1.0.5b1/
sudo /usr/local/php/bin/phpize
sudo ./configure --with-php-config=/usr/local/php/bin/php-config
sudo make
sudo make install
#使用pcel安装扩展:
sudo pecl install gmagick-1.0.5b1
重启php-cgi出错:
Starting php_fpm PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/gmagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/gmagick.so: undefined symbol: GOMP_critical_name_start in Unknown on line 0
done
阅读(2327) | 评论(0) | 转发(1) |