memcached1.4.4在ubuntu下编译的注意事项

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
原文地址:https://www.cnblogs.com/yuanxiaoping_21cn_com/p/2456171.html