1、./configure
make
sudo make install
2、通过gcc echo.c -levent可以编译成功,但是一运行就报错:“error while loading shared libraries: libevent-1.4.so.2: cannot open shared”
3、解决方法,查找libevent-1.4.so.2库,find / –name ‘libevent-1.4.so.2’
发现所在路径为/usr/local/lib/libevent-1.4.so.2
建立一个符号链接到/usr/lib/libevent-1.4.so.2
ln -s /usr/local/lib/libevent-1.4.so.2 /usr/local/
![Libevent Libevent](http://www.cppblog.com/images/cppblog_com/lynch/Windows-Live-Writer/ubuntulibevent_C9C2/Libevent%20_thumb.jpg)