我已经研究了这个答案ImageMagick Brew installation with PHP Module in Mac OS X,但无法在MacOS Mojave上安装ImageMagick。我被困在这里:
sudo pear install imagick-3.1.1.tgz
给出错误
checking if ImageMagick version is at least 6.2.4... found version 7.0.8 Q16 HDRI
configure: error: Cannot locate header file magick-wand.h
ERROR: `/private/tmp/pear/temp/imagick/configure --with-php-config=/usr/bin/php-config --with-imagick=7.0.8' failed
如何安装?