spatie / pdf-to-image 1.8.2在composer安装中需要ext-imagick错误

问题描述 投票:0回答:1

我只是通过使用作曲家cli来接手一个传统的laravel项目。我执行了composer install,但它表示一个错误spatie/pdf-to-image 1.8.2 requires ext-imagick Error。我不知道。我猜这是因为imagick扩展名在php.ini中设置不正确。有人遇到过这种错误吗?预先谢谢你。

php mysql laravel imagick
1个回答
0
投票

[就像您说的那样,您根本没有要使用的“ spatie / pdf-to-image”中使用的PHP扩展名imagick。

您可以检查imagick是否安装了功能phpinfo();

安装/激活取决于您所使用的系统。

在Ubuuntu下,您可以使用单个命令安装它:

apt-get install php-imagick

无论使用什么系统,请确保尚未安装imagick并在php.ini中进行了注释

© www.soinside.com 2019 - 2024. All rights reserved.