所以我刚用homebrew安装imagemagic
,然后又链接到php.ini文件。
但是,如果我现在在终端上运行php
命令,我会收到此错误: -
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php71-imagick/3.4.3_4/imagick.so' - dlopen(/usr/local/Cellar/php71-imagick/3.4.3_4/imagick.so, 9): Library not loaded: /usr/local/opt/imagemagick/lib/libMagickWand-7.Q16HDRI.3.dylib
Referenced from: /usr/local/Cellar/php71-imagick/3.4.3_4/imagick.so
Reason: image not found in Unknown on line 0
我无法理解。这个错误可能是什么原因?
答案 0 :(得分:0)
我有保存问题,此解决方案可以帮助我:
brew reinstall -s php71-imagick