如果启动时出现“memcached: error while loading shared libraries:libevent-2.0.so.5: cannot
open shared object file: No such file or directory”之类的信息,表示memcached 找不到
libevent 的位置
所以,请先使用whereis libevent 得到位置,然后连接到memcached 所寻找的路径
首先查看,libevent 在哪里
# whereis libevent
libevent: /usr/local/lib/libevent.la /usr/local/lib/libevent.so /usr/local/lib/libevent.a
然后,再看memcached 从哪里找它
# LD_DEBUG=libs memcached -v 2>&1 > /dev/null | less
可以看到:是/usr/lib/libevent-2.0.so.5,所以,创建软链
[root@localhost tools]# ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
再次启动
相关推荐
/usr/local/memcache/bin/memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory ``` 说明系统未能找到 libevent 库。为了解决这个...
然而,有时在启动Memcache时可能会遇到找不到共享库的错误,如“error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory”。这通常是由于系统路径中...
如果在启动 Memcached 时出现“memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory”错误信息,表示 Memcached 找不到 libevent 的...
其中一种常见的情况是,在启动memcached服务时出现错误提示:“error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory”。这个问题通常是由于系统...
memcached: error while loading shared libraries: libevent-1.3b.so.1: cannot open shared object file: No such file or directory ``` 为了解决这个问题,我们可以按照以下步骤操作: 1. 使用 `LD_DEBUG=libs...
如果遇到错误提示如“error while loading shared libraries: libevent-1.2.so.1: cannot open shared object file: No such file or directory”,则说明Libevent未被正确安装或Memcached未能找到Libevent。...