Greetings Unable to install pecl libevent. In phpinfo "20-libevent.ini" is displayed, but when you call the function event_base_new () - error: Call to undefined function

pecl list does not display libevent, when trying to install via pecl install libevent-beta or pecl install channel: //pecl.php.net/libevent-0.0.4 - error:

"pecl / libevent" conflicts version with package (version> = 0.0.2), pecl / libevent downloaded version is 0.1.0

What needs to be done to make everything work properly? (Ubuntu 16)

UPD: After deleting event: pecl ununstall event , another error occurs when trying to install libevent:

pecl / libevent requires PHP (version> = 5.3.0, version <= 6.0.0, excluded versions: 6.0.0), installed version is 7.0.10-1 + deb.sury.org ~ xenial + 1 No valid packages found

With php 5.6 activated

UPD:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/libevent.so' - /usr/lib/php/20131226/libevent.so: undefined symbol: php_sockets_le_socket in Unknown on line 0

UPD: I solved the problem as follows: I renamed the 20-libevent.ini files to 20-x-libevent.ini, but now I can’t install the event library, I get an error:

pecl install event

pecl / event conflicts with package "pecl / libevent" (version> = 0.0.2), installed version is 0.1.0

  • php -v and php -m what give out? - Ninazu
  • php -v: PHP 7.0.10-1 + deb.sury.org ~ xenial + 1 (cli) (NTS), phpinfo (): PHP Version 5.6.25-1 + deb.sury.org ~ xenial + 1, in php -m no libevent, despite the fact that I was just able to install it using the pecl install command --ignore-errors libevent-beta , the same error occurs Call to undefined function - Cript
  • Switch the CLI version to 5.6. It turns out that you are installing for version 5.6 from under version 7. Most likely you are working with the wrong version of the config - Ninazu
  • Switched the cli version, now when you enter the pecl list command, a lot of incomprehensible Notice and Warning appear - Cript
  • It is assumed that configs are different and for 5.6 error_reporting E_ALL is enabled - Ninazu

0