1.下载安装包,在官网http://www.monkey.org/~provos/libevent/下载
2.解压 运行命令: tar zxvf libevent-2.0.10-stable.tar.gz
3.设置安装路径: ./configure –prefix=/usr
4.编译:make
5.安装:make install
6.测试libevent是否安装成功:ls -al /usr/lib | grep libevent如果列出有libevent,则说明安装成功。