I use Laravel Valet. I'm trying to install the Image Magick PHP extension (PHP 7.4). I get as far as this:
pecl install imagick
And I get the error make failed
.
I'm on MacOS Monterey with the Apple Silicon M1 chip.
Any tips?
To install imagick
using pecl
:
Install imagemagick
brew install imagemagick
Then install imagick
using pecl
.
pecl install imagick
Also, I maintain a brew tap shivammathur/extensions you can use instead. It has pre-compiled commonly used PHP extensions.
Installing imagick on PHP 7.4 using the tap is as simple as:
brew tap shivammathur/extensions
brew install imagick@7.4