memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决

1.检查memcached是否正常运行

#ps aux | grep memcached

#或者

#telnet localhost 11211

会显示memcached的基本信息

如果启动时出现“memcached: error while loading shared libraries:libevent-2.0.so.5: cannot open shared object file: No such file or directory”之类的信息,表示memcached 找不到 libevent 的位置

2、查看libevent 在哪里

# whereis libevent

#提示

libevent-2.0.so.5: /usr/local/lib/libevent-2.0.so.5

3、再看memcached 从哪里找它

> ldd /usr/local/bin/memcached   (ldd指令不熟悉的去查看下)

#提示

libevent-2.0.so.5 => not found    (没有找到该文件)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b83fce0e000)

libc.so.6 => /lib64/libc.so.6 (0x00002b83fd029000)

librt.so.1 => /lib64/librt.so.1 (0x00002b83fd381000)

/lib64/ld-linux-x86-64.so.2 (0x00002b83fc9b0000)
> LD_DEBUG=libs ./memcached -v

#找到默认路径 /usr/lib/

>sudo ln -s /usr/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5

>sudo ldd /usr/local/bin/memcached

#提示

libevent-2.0.so.5 => /usr/lib64/libevent-2.0.so.5 (0x00002b83fcbcd000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b83fce0e000)

libc.so.6 => /lib64/libc.so.6 (0x00002b83fd029000)

librt.so.1 => /lib64/librt.so.1 (0x00002b83fd381000)

/lib64/ld-linux-x86-64.so.2 (0x00002b83fc9b0000)
时间: 2024-10-11 20:51:05

memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解决的相关文章

/bin/gnugk: error while loading shared libraries: libcrypto.so.0.9.8:

[[email protected] ~]# /bin/gnugk -c /etc/gnugk/gnugk.ini -ttttt -o /var/log/gnugk.log/bin/gnugk: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory 解决方法: [[email protected] ~]# yum -y

[转]"error while loading shared libraries: xxx.so.x" 错误的原因和解决办法

[转]"error while loading shared libraries: xxx.so.x" 错误的原因和解决办法 http://blog.csdn.net/sahusoft/article/details/7388617 一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误, 比如: tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared obje

error while loading shared libraries: libpcre.so.0的解决办法(转)

error while loading shared libraries: libpcre.so.0的解决办法 昨晚刚买了台linux云服务器,今天配置apache2时,因没有备份libpcre.so.0文件便执行命令“rpm -e pcre –nodeps”,导致丢失libpcre.so.0文件.结果可想而知,新版的pcre再也安装不上了,apache2也无法再编译了.只要一编译,就提示错误: error while loading shared libraries: libpcre.so.0

error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file

安装rac10g,出现如下错误: [[email protected] oracle]# /u01/product/crs/root.sh WARNING: directory '/u01/product' is not owned by root Checking to see if Oracle CRS stack is already configured /etc/oracle does not exist. Creating it now. Setting the permission

error while loading shared libraries: libudev.so.0 的问题

在linux下运行koala的时候遇到了问题: 应该是缺少文件libudev.so.0 在/lib和/lib64目录下也都没有这个文件.然后网上找解决方案,在/lib/x86_64-linux-gnu/目录下找到一个文件:libudev.so.1 于是做了一个软连接: sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0 搞定. 参考自: error while loading share

NCARG安装配置出现error while loading shared libraries: libg2c.so.0问题额解决办法

nclncl: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory 先看看运行机器上面有没有这个动态链接库,有的话再看看环境变量对不对,libg2c.so.0 所在路径是不是在你的LD_LIBRARY_PATH里面了,可以到/etc/ld.so.conf文件里面去更改,然后ldconfig 如果有的话,按2楼操作,一般情况下是动态文

动态链接库找不到 : error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory

问题: 运行gsl(GNU scientific Library)的函数库,用 gcc erf.c -I/usr/local/include -L/usr/local/lib64 -L/usr/local/lib -g -Wall --std=gnu99 -lgsl -lgslcblas -o m.o 编译,之后运行./m.o 提示error while loading shared libraries: libgsl.so.0: cannot open shared object file:

Nginx启动错误:error while loading shared libraries: libpcre.so.0

今天测试的时候,启动一个其他机器预编译好的nginx到目标测试机器(OEL 7.4)启动的时候,报了下列错误: /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory 经查,OEL 7.4版本下/lib64下没有libpcre.so.0这个共享库,故创建一个到libpcre.s

error while loading shared libraries: libpcre.so.0的解决办法

因没有备份libpcre.so.0文件便执行命令“rpm -e pcre –nodeps”,导致丢失libpcre.so.0文件.结果可想而知,新版的pcre再也安装不上了,apache2也无法再编译了.只要一编译,就提示错误: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory 经过半天的折腾,从别的服务器上拷贝来一份libpc