1. 下载
libevent.org
2. 配置
tar xf libevent.tar.gzcd libevent./configure --prefix=/usrmakemake install
3. 单独编译sample
gcc -g -Wall -o hello hello-world.c -levent -I/usr/include -L/usr/lib/