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
andphp -m
what give out? - Ninazu