notes icon indicating copy to clipboard operation
notes copied to clipboard

Mcrypt Not Matched PHP > 8.1

Open lanlin opened this issue 3 years ago • 0 comments

情景

~ pecl install mcrypt
pecl/mcrypt requires PHP (version >= 7.2.0, version <= 8.1.0, excluded versions: 8.1.0), installed version is 8.1.4
No valid packages found
install failed

如上,截止 2022-04-12 为止, mcrypt 都还不支持 php 8.1+ 的版本

解决办法

pecl install -n mcrypt

只能先忽略版本要求,强行安装,将就用着先

~ pecl install -n mcrypt
warning: pecl/mcrypt requires PHP (version >= 7.2.0, version <= 8.1.0, excluded versions: 8.1.0), installed version is 8.1.4
downloading mcrypt-1.0.4.tgz ...
Starting to download mcrypt-1.0.4.tgz (27,056 bytes)
.........done: 27,056 bytes
6 source files, building
running: phpize
Configuring for:
PHP Api Version:         20210902
Zend Module Api No:      20210902
Zend Extension Api No:   420210902
...

lanlin avatar Apr 12 '22 06:04 lanlin