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/
