📅  最后修改于: 2023-12-03 14:43:53.627000             🧑  作者: Mango
#libevent Ubuntu Install
##Introduction As a programmer, you may have heard of or used libevent - a high-performance event notification library that provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached.
This guide will walk you through the steps of installing libevent on Ubuntu.
##Installation
sudo apt update
sudo apt install build-essential
wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
tar -xvf libevent-2.1.12-stable.tar.gz
cd libevent-2.1.12-stable
./configure
make
sudo make install
ldconfig -p | grep libevent
You should see the path to the installed libevent library.
##Conclusion That's it! You have successfully installed libevent on Ubuntu. Now you can use this powerful event notification library in your application development.