1、./configure
make
sudo make install
2、通過gcc echo.c -levent可以編譯成功,但是一運(yùn)行就報(bào)錯(cuò):“error while loading shared libraries: libevent-1.4.so.2: cannot open shared”
3、解決方法,查找libevent-1.4.so.2庫(kù),find / –name ‘libevent-1.4.so.2’
發(fā)現(xiàn)所在路徑為/usr/local/lib/libevent-1.4.so.2
建立一個(gè)符號(hào)鏈接到/usr/lib/libevent-1.4.so.2
ln -s /usr/local/lib/libevent-1.4.so.2 /usr/local/
