0
I was installing PHP Cli-menu as indicated on the Github page:
Composer require php-school/cli-menu
Then came this mistake:
Problem 1 - Installation request for php-school/cli-menu 2.1 -> satisfiable by php-school/cli-menu[2.1.0]. - php-school/cli-menu 2.1.0 requires ext-Posix * -> the requested PHP Extension Posix is Missing from your system.
To enable Extensions, Verify that they are enabled in your . ini files:
- C: xampp php.ini
You can also run php --ini
Inside terminal to see which files are used by PHP in CLI mode.
Someone can help me?
The error is stating that it is necessary to have the extension
ext-posix
installed on your system. Check on php.ini inC:\xampp\php\php.ini
if the extension is enabled.– user98628
Thank you, know how to inform which line or excerpt of the code shows if it is enabled?
– johnatan
There is a session in this file called "Dynamic Extensions". There you will find the extensions more or less like this:
extension=php_mbstring.dll
. If you have a;
at the beginning of the line, the extension is disabled. Simply remove the;
, save the file and restart the server.– user98628