PHP 警告:PHP 启动:imagick:无法初始化模块

问题描述 投票:0回答:1

我读过类似的问题,但我相信我的解决方案可能是新的:

我最近将 Windows 10 升级到 PHP 8.2.1,今天我将

extension=ext/php_imagick
添加到 php.ini,运行
php -v
时出现以下错误:

Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20210902
PHP    compiled with module API=20220829
These options need to match

我尝试降级到 PHP 8.1,但模块 API 版本仍然较新,而且我一直在从声称与 PHP 8.2 兼容的来源下载 Imagick...

我尝试按照本指南从各种来源安装最新版本的Imagick,但我不断收到错误。

考虑到可能还没有一个用最新模块API编译的Imagick官方打包版本,所以我一直按照这个指南自己编译Imagick,我把bin文件夹URL放入Path中,重新启动命令提示符,这次收到错误:

the procedure entry point MagickSetSeed could not be located

那是我一整天的时间,我没有想法......

php windows dll version imagick
1个回答
0
投票

windows 下没有正式发布适用于 PHP 8.1+ 的 imagick

但是,这是开放的 Github 问题线程中的非官方构建。

https://github.com/Imagick/imagick/issues/573#issuecomment-1431773928

注意:尝试需要您自担风险,不保证一定有效

© www.soinside.com 2019 - 2024. All rights reserved.