Wenn du ImageMagick in Kombination mit Laravel Valet nutzen möchtest, musst du es zunächst via Homebrew installieren:
brew install imagemagick
pecl install imagick
pecl install imagick
führt möglicherweise zu dieser Fehlermeldung:
$ pecl install imagick
[...]
checking for pkg-config... no
pkg-config not found
configure: error: Please reinstall the pkg-config distribution
ERROR: `/private/tmp/pear/temp/imagick/configure --with-php-config=/usr/local/opt/php/bin/php-config --with-imagick' failed
Um das Problem zu beheben, folgenden Befehl ausführen:
brew instal pkg-config
Nun sollte pecl install imagick
funktionieren:
pecl install imagick
Anschließend noch Valet neustarten:
valet restart
Nun sollte ImageMagick zur Verfügung stehen.