PHP安装imagick扩展遇到的坑

本文档详述了解决PHP启动时警告,因imagick模块编译时API与PHP不一致的问题。通过对比API版本并提供可能的解决方案,帮助开发者修复'Unable to initialize module'错误。
Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20160303
PHP compiled with module API=20151012
These options need to match
in Unknown on line 0
Could not open input file: php

个人遇到的错得出结论是 imagick 的版本太新了,如:Module compiled with module API=20160303-PHP compiled with module API=20151012;才导致无法初始化imagick模块

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值