memcacheq: error while loading shared libraries: libdb-5.1.so: cannot open shared object file: No su

本文介绍了如何解决Memcacheq在启动过程中遇到的缺少libdb-5.1.so和libevent-2.0.so.5共享库的问题,并提供了详细的解决步骤,包括创建软链接和安装libevent库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

测试:/usr/local/memcacheq/bin/memcachq -h
运行报:
memcacheq: error while loading shared libraries: libdb-5.1.so: cannot open shared object file: No such file or directory
        解决方法:ln -s /usr/local/BerkeleyDB.5.1/lib/libdb-5.1.so /usr/lib/libdb-5.1.so


memcacheq: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

安装libevent    
检查一下有没有安装libevent: ls -al /usr/lib |grep libevent
如果没有就安装libevent ,下载地址:http://www.libevent.org (首页 Download–Stable releases)
解压:# tar -zxvf libevent-***-.tar.gz 
        #cd libevent-***-
        #./configure --prefix=/usr
        #make && make install
安装完检测下  ls -al /usr/lib |grep libevent
lrwxrwxrwx   1 root root        21 02-06 20:26 libevent-1.4.so.2 -> libevent-1.4.so.2.1.3
.................................
-rw-r--r--   1 root root     11838 04-13 14:03 libevent_pthreads.a    
-rwxr-xr-x   1 root root       996 04-13 14:03 libevent_pthreads.la
lrwxrwxrwx   1 root root        30 04-13 14:03 libevent_pthreads.so -> libevent_pthreads-2.0.so.5.1.6
lrwxrwxrwx   1 root root        21 04-13 14:03 libevent.so -> libevent-2.0.so.5.1.6

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值