使用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版本 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`可以解决问题
换成php8.2
要么指定库版本,要么升级php版本