I need the Yii2 shell.
I do:
php composer.phar require yiisoft/yii2-shell
And I get this message:
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: /usr/lib/php/20210902/pdo_firebird (/usr/lib/php/20210902/pdo_firebird: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/pdo_firebird.so (/usr/lib/php/20210902/pdo_firebird.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20210902/pdo_mysql.so (/usr/lib/php/20210902/pdo_mysql.so: undefined symbol: mysqlnd_get_client_info), /usr/lib/php/20210902/pdo_mysql.so.so (/usr/lib/php/20210902/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module "PDO" is already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: /usr/lib/php/20210902/pdo_firebird (/usr/lib/php/20210902/pdo_firebird: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/pdo_firebird.so (/usr/lib/php/20210902/pdo_firebird.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20210902/pdo_mysql.so (/usr/lib/php/20210902/pdo_mysql.so: undefined symbol: mysqlnd_get_client_info), /usr/lib/php/20210902/pdo_mysql.so.so (/usr/lib/php/20210902/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module "PDO" is already loaded in Unknown on line 0
./composer.json has been updated
Running composer update yiisoft/yii2-shell
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2-shell 2.0.0 requires psy/psysh 0.7.* -> found psy/psysh[v0.7.0, v0.7.1, v0.7.2] but the package is fixed to v0.11.20 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- yiisoft/yii2-shell 2.0.1 requires psy/psysh ~0.8.1 -> found psy/psysh[v0.8.1, ..., v0.8.18] but the package is fixed to v0.11.20 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- yiisoft/yii2-shell[2.0.2, ..., 2.0.3] require psy/psysh ~0.9.3 -> found psy/psysh[v0.9.3, ..., v0.9.12] but the package is fixed to v0.11.20 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- yiisoft/yii2-shell 2.0.4 requires psy/psysh ~0.9.3|~0.10.3 -> found psy/psysh[v0.9.3, ..., v0.10.12] but the package is fixed to v0.11.20 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- yiisoft/yii2-shell 2.0.5 requires symfony/var-dumper ~2.7|~3.0|~4.0|~5.0 -> found symfony/var-dumper[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.47, v5.0.0, ..., v5.4.40] but the package is fixed to v6.3.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires yiisoft/yii2-shell * -> satisfiable by yiisoft/yii2-shell[2.0.0, ..., 2.0.5].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require yiisoft/yii2-shell:*" to figure out if any version is installable, or "composer require yiisoft/yii2-shell:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
If I do –with-all-dependencies (-W), it works fine. But it will also update the Yii2 version, which is intolerable.
Could you tell me how to load dependencies individually?