
1、去GitHub找到源码。复制网址然后在Ubuntu中下载:git clone
2、找不到./configure文件,重新阅读READ.ME发现:
To build libevent, type

$ ./configure && make
(If you got libevent from the git repository, you will
first need to run the included "autogen.sh" script in order to

generate the configure script.)
需要你先运行autogen.sh,这里既需要一个安装autoconf。
[emailprotected]:~/share/libevent$ sudo apt-get install autoconf

3、./configure --prefix=/usr
发现出错:configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
这里我安装了shtool和libtool并输入命令autoreconf -f -i -Wall,no-obsolete

再次./configure --prefix=/usr
成功配置生成Makefile
后面接着按照前面步骤,make --->make install
完成安装。
对于以上错误我参考了其它的博文libevent 安装libevent 安装,并不知所以然,只能把自己的摸索一步一步写下来,有哪些问题希望你们指正相互学习!
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-138397-1.html
该出手时必须出手
亲爱的