### 情景 ```shell ~ 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+ 的版本 ### 解决办法 ```shell pecl install -n mcrypt ``` 只能先忽略版本要求,强行安装,将就用着先 ```shell ~ 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 ... ```
Activity