我无法在php中设置imagick模块

时间:2017-08-26 06:47:08

标签: php imagick

我在安装imagick并从php加载模块时遇到问题,但我还没有找到任何问题的原因。这个问题的解决方法是什么?

我的环境

  • Apache:v2.4.25
  • XAMPP-OSX - v5.6.30-1
  • PHP - v5.6.30
  • macOSX Sierra - v10.12.5
  • Homebrew - v1.3.1
  • php56-imagick - v3.4.3_4
  • imagemagick - v7.0.6-9

安装过程

brew install imagemagick

brew search imagemagick

brew install php56-imagick —build-from-source

brew search php56-imagick

我的php.ini文件:

extension="/usr/local/Cellar/php56-imagick/3.4.3_4/imagick.so"

我的phpinfo:

Loaded Configuration File - /Application/XAMPP?camppfiles/etc/php.in

**我的错误记录**

[25-Aug-2017 12:40:55 Europe/Berlin] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php56-imagick/3.4.3_4/imagick.so' - dlopen(/usr/local/Cellar/php56-imagick/3.4.3_4/imagick.so, 9): Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib

Referenced from: /usr/local/opt/imagemagick/lib/libMagickWand-7.Q16HDRI.3.dylib

Reason: Incompatible library version: libMagickWand-7.Q16HDRI.3.dylib requires version 21.0.0 or later, but libfreetype.6.dylib provides version 15.0.0 in Unknown on line 0

0 个答案:

没有答案