step 1
安装过wget yum install wget
step 2
wget --no-check-certificate http://www.monkey.org/~provos/libevent-2.0.10-stable.tar.gz
step 3
tar -zxvf libevent-2.0.10-stable.tar.gz
step 4
yum -y install gcc gcc-c++ autoconf make
step 5
cd libevent-2.0.10-stable
step 6
./configure --prefix=/usr
(安装其他目录时会有找不到头文件的情况,建议安装在这里)
step 7
make install
step 8 测试libevent是否安装成功:
ls -al /usr/lib | grep libevent