VPS侦探论坛

 找回密码
 注册
查看: 1561|回复: 1

[Nginx] PHP Startup: Unable to load dynamic library 'imagick.so'

[复制链接]
发表于 2023-9-25 23:48:54 | 显示全部楼层 |阅读模式

PHP Version: PHP 8.1.19 (cli) (built: Jul 26 2023 14:35:46) (NTS)

Linux Version: Alibaba Cloud Linux release 3 (Soaring Falcon)
Nginx Version: nginx version: nginx/1.24.0
lib version: libfontconfig.so.1 -> libfontconfig.so.1.12.0

安装imagick提示如下错误:
NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20210902/imagick.so (/usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var), /usr/local/php/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

求大神解答,这是什么原因造成的,我该怎么修复。万分感谢。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-9-26 20:26:15 | 显示全部楼层


有可能是你安装了fontconfig导致的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-22 00:01 , Processed in 0.025884 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表