参考文章:https://www.cnblogs.com/charlesblc/p/5452749.html
https://blog.csdn.net/yusiguyuan/article/details/31747859
1.首先需要安装make,libtool,automake,unzip
sudo apt-get install make
sudo apt-get install libtool
sudo apt-get install automake
sudo apt-get install unzip
2.下载libevent压缩包后进行解压
unzip Libevent-master.zip
3.cd 到libevent解压后的目录
aclocal
autoconf
autoheader
automake --add-missing
最后一个命令报错configure.ac:129: error: required file './ltmain.sh' not found
使用libtoolize --automake --copy --debug --force
重新执行命令automake --add-missing
执行命令:sh autogen.sh
生成 Makefile.in
./configure
make
make install