To download and install ev automatically you need the following commands
for stable release(if available), and the following for beta release:
If you have the package archive, unpack it and run:
-# pecl install package2.xml
+# pecl install package2.xml
-Note, these commands(started with `#
') most likely need root priveleges.
+Note, these commands(started with `#) most likely need root priveleges.
libev is embedded in ev. So you don't need to install the library separately.
Checkout the project or download it as archive. In the package directory run:
+ $ ./configure --with-ev
Additionally, you may take advantage of the following flags:
---enable-ev-debug Enable ev internal debugging
---enable-ev-libevent-api Enable libevent compatibility API support
+ --enable-ev-debug Enable ev internal debugging
+ --enable-ev-libevent-api Enable libevent compatibility API support
Optionally test the extension:
Do install with root priveleges:
In php.ini, or some other configuration like
Restart the SAPI server(Apache, PHP-FPM etc.), if any.