Centos执行:
yum install libjpeg* libpng* freetype* gd*
Ubuntu / Debian执行:
apt-get install libmagickwand-dev
还有可能是你的包起冲突了,比如我这里(文档转换器,我这边不需要,可以直接卸载):
Transaction check error:
file /usr/lib64/libgs.so.9 from install of libgs-9.25-2.el7_7.3.x86_64 conflicts with file from package ghostscript-9.07-31.el7_6.9.x86_64
file /usr/lib64/libijs-0.35.so from install of libgs-9.25-2.el7_7.3.x86_64 conflicts with file from package ghostscript-9.07-31.el7_6.9.x86_64
卸载包:yum remove ghostscript-fonts-5.50-32.el7.noarch
然后在去php插件里面安装,就OK了!
参考链接1:https://www.5axb.com/course-339/
参考链接2:https://moe.best/linux-memo/bt-imagemagick.html
文章评论