1. 下载

libevent.org

2. 配置

tar xf libevent.tar.gz
cd libevent
./configure --prefix=/usr
make
make install

3. 单独编译sample

gcc -g -Wall -o hello  hello-world.c -levent -I/usr/include -L/usr/lib/




相关文章: