libevent2编译

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/




posted on 2012-01-16 16:35  leaving  阅读(695)  评论(0编辑  收藏  举报