apache - apache bin中的Imagick UnableToLoadModule IM_MOD_RL_png_.dll
问题描述
我正在使用 Windows 操作系统、64 位 PHP 版本 7.4 并启用了线程安全。
我已经从 http://windows.php.net/downloads/pecl/releases/imagick/下载了最新版本的 php_extension选择最新版本。
接下来解压缩 zip 文件并将 dll 复制到 php 安装 ext 文件夹。
在 phpinfo 中,它显示已启用并正在运行。
我从 ImageMagick 服务器http://www.imagemagick.org下载了最新的 Windows 版本的 ImageMagick并将其安装到 D:\ImageMagick-7.0.7-11-vc15-x64 添加了环境路径。
我写了一个简单的代码来测试。它返回错误
$image = new Imagick();
// Use newImage function to create new image
$image->newImage(650, 400, '#FF0000');
// Set the image format
$image->setImageFormat('png');
header('Content-type: image/png');
// Display the output image
echo $image;
UnableToLoadModule 'D:\lara\bin\apache\httpd-2.4.35-win64-VC15\bin\IM_MOD_RL_png_.dll': The specified module could not be found. @ error/module.c/OpenModule/1275 (View: D:\lara\www\eror-io\Modules\Invoices\Resources\views\link.blade.php)
请让我知道为什么会出现此错误。我检查了路径 D:\lara\bin\apache\httpd-2.4.35-win64-VC15\bin\IM_MOD_RL_png_.dll 文件是否存在。
与apache版本有关吗
谢谢
解决方案
推荐阅读
- keycloak - 将 Keycloak 与 icCube 一起使用 - 如何使其工作(缺少 Keycloak 上下文令牌)?
- dplyr - 通过带有不带引号的元素的显式参数指定要分组的多个变量
- applepay - 订单完成后 Apple pay on web pay
- r - R中的顺序向量:带数字的字母很有趣
- html - 仅在内部或仅在外部描边 SVG 路径
- c# - 如何使用非泛型类型获取 Enum 的默认值?
- android - 如何检查我的 APK 第三方库是否符合 64 位架构?
- c - 即使使用 -O3,clang 为 div64 生成这么多代码是不是很好?
- java - 使用流交替混合两个列表
- java - 线程“主”org.apache.kafka.streams.errors.InvalidStateStoreException 中的异常: