Libevent

Before starting: Make sure you have the necessary folders and permissions — get more information.

Links: Homepage
Dependencies: None
Version: 2.0.22

Libevent is an event notification library.

Get the Code

Switch to /usr/local/src and download the source package.

cd /usr/local/src
curl --remote-name --location https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-VERSION-stable.tar.gz

Extract the archive and move into the folder.

tar -xzvf libevent-VERSION-stable.tar.gz
cd libevent-VERSION-stable

Compile and Install

Configure, compile and install into /usr/local/libevent-VERSION.

./configure \
  --prefix=/usr/local/libevent-VERSION \
  --disable-dependency-tracking \
  --disable-debug-mode
make
make install

Create a symbolic link that points /usr/local/libevent to /usr/local/libevent-VERSION.

ln -s libevent-VERSION /usr/local/libevent