由於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