1、将CFlags里的项-Werror替换成
-Wno-error=unused-but-set-variable
,不然会报错variable set but not used [-Wunused-but-set-variable]
2、创建libevent-1.4.so.2到/usr/lib/(如是32位ubuntu为lib32)
ln -s /usr/local/libevent-1.4.12-stable/lib/libevent-1.4.so.2 /usr/lib/libevent-1.4.so.2