yum 安装 php72w-pecl-imagick 报错

由于ECS快到期了,打算换个配置,趁着618入手一台新的。结果之前顺利安装过几次的文档居然报错了。

情况如下

Error: Package: php72w-pecl-imagick-3.4.3-1.2.w7.x86_64 (webtatic)
           Requires: libMagickWand.so.5()(64bit)
Error: Package: php72w-pecl-imagick-3.4.3-1.2.w7.x86_64 (webtatic)
           Requires: libMagickCore.so.5()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

百度谷歌了半天,尝试了 yum clean all 都不行,老外说了,Centos7.8 发布后 Magick 更新的底层库,需要开发者根据新的 API 更新自己的库。 php72w 的开发者没有维护了,so 解决不了,那么只有明天尝试下源码安装 PHP 了,以后还是不能偷懒用这些集成的软件。

第二天尝试源码安装的时候报错

checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /usr/bin/pkg-config
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... Doesn't exist
checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
checking Testing /opt/bin/MagickWand-config... Doesn't exist
checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.

这下突然就找到问题了,解决方法如下:

yum install -y ImageMagick-devel
yum -y install php72w-pecl-imagick
posted @ 2020-06-18 20:40  天明听歌  阅读(1397)  评论(0编辑  收藏  举报