mac php使用pecl安装imagick
错误提示:
Mac pecl install: configure: error: Please reinstall the pkg-config distribution
摘要:由于多次踩坑,现记录下。原因很简单,pecl工具安装其它扩展基本是不用依赖其它东西的,但imagick扩展需要mac先安装imagemagick,它需要依赖这个东西。
环境:
php 7.4
需要安装的工具:
brew
pecl
执行下面两条命令,必须先要安装imagemagick,再使用pecl安装imagick,执行完毕即可。会自动写到php.ini文件里,挺好用的,可以尝试下。
brew install imagemagick
pecl install imagick
执行出现下面结果代表安装成功,避坑指南!
分享不易,点赞关注给作者一点点鼓励🤓🤓,谢谢您