Libevent
Before starting: Make sure you have the necessary folders and permissions — get more information.
Links: Homepage
Dependencies: None
Version: 2.1.8
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://github.com/libevent/libevent/releases/download/release-VERSION-stable/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/mac-dev-env/libevent-VERSION
.
./configure \
--prefix=/usr/local/mac-dev-env/libevent-VERSION \
--disable-debug-mode \
--disable-dependency-tracking \
--disable-openssl
make
make install
Create a symbolic link to /usr/local/libevent
.
sudo ln -s mac-dev-env/libevent-VERSION /usr/local/libevent