Introduction to libevent

libevent is an asynchronous event notification software library. The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also supports callbacks due to signals or regular timeouts.



Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.

Package Information

libevent Dependencies


Doxygen-1.9.4 (for API documentation)

User Notes:

Installation of libevent

First, fix an issue that prevents from working:

sed -i 's/python/&3/'

Install libevent by running the following commands:

./configure --prefix=/usr --disable-static &&

If you have Doxygen-1.9.4 installed and wish to build API documentation, issue :

doxygen Doxyfile

To test the results, issue: make verify. Six tests in every suite related to regress_ssl.c and regress_http.c are known to fail due to incompatibilities with OpenSSL-3.

Now, as the root user:

make install

If you built the API documentation, install it by issuing the following commands as the root user:

install -v -m755 -d /usr/share/doc/libevent-2.1.12/api &&
cp      -v -R       doxygen/html/* \

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.


Installed Program:
Installed Libraries:,,, and
Installed Directory: /usr/include/event2 and /usr/share/doc/libevent-2.1.12