I am trying to install Imagick on my Mac, but I get this error after I use:
sudo pecl install imagick
ERROR: failed to mkdir /usr/include/php/ext/imagick
and here is the console log:
downloading imagick-3.4.3.tgz ...
Starting to download imagick-3.4.3.tgz (245,410 bytes)
...................................................done: 245,410 bytes
19 source files, building
running: phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
Please provide the prefix of Imagemagick installation [autodetect] :
If I press return, then it keeps loading lots of things and then I get the error:
Build process completed successfully
Installing '/usr/include/php/ext/imagick/php_imagick_shared.h'
ERROR: failed to mkdir /usr/include/php/ext/imagick