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

另外libevent和memcached在configure时都加了--prefix=/usr/local/memcached-1.4.4
posted on 2012-04-18 23:27  袁晓平  阅读(191)  评论(0编辑  收藏  举报