【解决】宝塔PHP8.1一键安装imagick(ImageMagick)失败
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了!
THE END