pecl-ev / INSTALL.md

INSTALLATION OF EV PECL EXTENSION

Currently GNU/Linux platforms supported only.

AUTOMATIC INSTALLATION

To download and install ev automatically you need the following commands

# pecl install ev

for stable release(if available), and the following for beta release:

# pecl install ev-beta

If you have the package archive, unpack it and run:

# pecl install package2.xml

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.

MANUAL INSTALLATION

Checkout the project or download it as archive. In the package directory run:

$ phpize 
$ ./configure --with-ev
$ make

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

Optionally test the extension:

$ make test

Do install with root priveleges:

# make install

In php.ini, or some other configuration like </usr/local/etc/php/conf.d/ev.ini> write:

extension=ev.so

FINALLY

Restart the SAPI server(Apache, PHP-FPM etc.), if any.

vim: ft=markdown tw=80

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.