我在安装imagick并从php加载模块时遇到问题,但我还没有找到任何问题的原因。这个问题的解决方法是什么?
我的环境:
安装过程:
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