我一直在尝试让 imagick 在普通的 lamp 服务器上工作。我做了以下事情:
sudo apt-get --purge remove "imagemagick"
sudo apt-get --purge remove "php5-imagick*"
service apache2 restart (lib not loaded anymore)
sudo apt-get install imagemagick && php5-imagick
sudo php5enmod imagick
sudo service apache2 restart
PHP 信息表明库已加载,但是 apache 错误日志针对每个请求都充斥着以下内容:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/imagick.so' - liblcms2.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
该文件/usr/lib/php5/20121212/imagick.so
存在,如果我删除它,错误是相同的,但是[..]imagick.so' - imagick.so[..]
用[..]imagick.so' - liblcms2.so.2[..]
PHP 版本:5.5.9-1ubuntu4.14