1. libevent official website ( http://libevent.org/ on) the download package (I downloaded the libevent-2.1.8-stable.tar.gz )
2. extracting archive: tar -zxvf libevent-2.1.8-stable.tzr.gz
3. Go to the newly created directory: cd libevent-2.1.8-stable
4. Installation target path configuration repository: ./ configure --prefix = / usr
The compiler installation libevent library: (1) make (2) sudo make install
6. Check the installation was successful: ls -al / usr / lib | grep libevent