issues installing imagick for macOS

488 Views Asked by At

edit: After some further errors, I'm stuck at this:

make: *** [imagick_file.lo] Error 1
ERROR: `make' failed

As I understand, this seems to be a compatibility problem with the PHP-Version. Is there any possibility to solve this?



I'm using XAMPP on macOS Catalina 10.15.7 to run a PHP-testserver and need to install imagick, but experience some issues.

When I run the following command in Terminal:

pecl install imagick

...I get an error message:

WARNING: configuration download directory "/private/var/tmp/pear/download" is not writeable.  Change download_dir config variable to a writeable dir to avoid this warning
downloading imagick-3.4.4.tgz ...
Starting to download imagick-3.4.4.tgz (253,434 bytes)
.....................................................done: 253,434 bytes
ERROR: failed to mkdir /usr/local/lib/php/doc/imagick/examples

I'm an absolute beginner, so I would be really grateful, to get some explanations, how to make this work. Thank you very much.

1

There are 1 best solutions below

2
Fran Cerezo On

Try sudo

sudo pecl install imagick