0

编辑:在一些进一步的错误之后,我被困在这个:

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

据我了解,这似乎是 PHP 版本的兼容性问题。有没有可能解决这个问题?



我在 macOS Catalina 10.15.7 上使用 XAMPP 来运行 PHP-testserver 并且需要安装 imagick,但遇到了一些问题。

当我在终端中运行以下命令时:

pecl install imagick

...我收到一条错误消息:

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

我是一个绝对的初学者,所以我真的很感激,得到一些解释,如何使这项工作。非常感谢。

4

1 回答 1

1

试试须藤

sudo pecl install imagick
于 2021-05-07T10:01:26.927 回答