Error installing PHP Cli-Menu

Asked

Viewed 174 times

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 in C:\xampp\php\php.ini if the extension is enabled.

  • Thank you, know how to inform which line or excerpt of the code shows if it is enabled?

  • 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.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.