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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM