安装illuminate/redis illuminate/events出现报错

lengxiaoyu

问题描述

使用composer require -W illuminate/redis illuminate/events出现了报错

报错信息

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires PHP extension ext-mysql_xdevapi * but it is missing from your system. Install or enable PHP's mysql_xdevapi extension.

To enable extensions, verify that they are enabled in your .ini files:
    - G:\phpstudy_pro\Extensions\php\php8.0.2nts\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-mysql_xdevapi` to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require illuminate/redis:*" to figure out if any version is installable, or "composer require illuminate/redis:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

截图报错信息里报错文件相关代码

截图

操作系统及workerman/webman等框架组件具体版本

Workerman版本 4.1.13
Webman版本 1.5.9
WebmanAdmin版本 0.6.18
PHP版本 8.0.2
MYSQL版本 5.7.39-log
操作系统 WINNT

加上--ignore-platform-req=ext-mysql_xdevapi`可以解决问题

348 2 0
2个回答

PHP甩JAVA一条街

换成php8.2

  • 暂无评论
gddd

要么指定库版本,要么升级php版本

  • 暂无评论
🔝