memcached依赖于libevent
1.下载libevent和memcached源码
2.进入目录,解压
tar xzf ***
3.先编译linevent
./configure
make
sudu make install
4.接着编译memcached
./configure
make
sudu make install
5.测试运行
注:运行时出现一个问题,就是找不到libevent-2.0.so.5:
$ whereis libevent-2.0.so.5
libevent-2.0.so.5: /use/local/lib/libevent-2.0.so.5
$ ldd /use/local/bin/memcached
libevent-2.0.so.5 => not found
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00613000)
libc.so.6 => /lib/tls/libc.so.6 (0x003c6000)
/lib/ld-linux.so.2 (0x003ac000)
$ sudo ln -s /usr/local/lib/libevent-2.0.so.5 /lib/tls/libevent-2.0.so.5
搞定。
阅读(1034) | 评论(0) | 转发(0) |