1.2、直接brew install imagemagick@6完成安装
2、去http://pecl.php.net/package/imagick下载安装包
2.1、下载完后解压tar -xzvf imagick-3.4.3.tar。
2.2、cd imagick-3.4.3
2.3、执行cd /usr/local/Cellar/php@7.2/7.2.17_1/bin/phpize
2.4、./configure --with-php-config=/usr/local/Cellar/php@7.2/7.2.17_1/bin/php-config --with-imagick=/usr/local/opt/imagemagick@6(备注:如果提示:not fund pkg-config,就得先装一下pkg-config。brew pkg-config就可以了)
2.5、make
原文:https://www.cnblogs.com/huanhang/p/11046696.html