关于执行memcached报错问题

执行
#/usr/local/memcached/bin/memcached
随后出现如下错误:
./memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

找不到libevent-2.0.so.5文件

解决方法如下:

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

# ldd /usr/local/memcached/bin/memcached
linux-vdso.so.1 => (0x00007fffaeae1000)
libevent-2.0.so.5 => not found
librt.so.1 => /lib64/librt.so.1 (0x000000374e400000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x000000374e000000)
libc.so.6 => /lib64/libc.so.6 (0x000000374dc00000)
/lib64/ld-linux-x86-64.so.2 (0x000000374d400000)

# LD_DEBUG=libs ./memcached -v
17015: find library=libevent-2.0.so.5 [0]; searching
17015: search path=/usr/local/libevent-2.0.22-stable/lib/tls/x86_64:/usr/local/libevent-2.0.22-stable/lib/tls:/usr/local/libevent-2.0.22-stable/lib/x86_64:/usr/local/libevent-2.0.22-stable/lib (RPATH from file ./memcached)
17015: trying file=/usr/local/libevent-2.0.22-stable/lib/tls/x86_64/libevent-2.0.so.5
17015: trying file=/usr/local/libevent-2.0.22-stable/lib/tls/libevent-2.0.so.5
17015: trying file=/usr/local/libevent-2.0.22-stable/lib/x86_64/libevent-2.0.so.5
17015: trying file=/usr/local/libevent-2.0.22-stable/lib/libevent-2.0.so.5
17015: search cache=/etc/ld.so.cache
17015: search path=/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x86_64:/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64 (system search path)
17015: trying file=/lib64/tls/x86_64/libevent-2.0.so.5
17015: trying file=/lib64/tls/libevent-2.0.so.5
17015: trying file=/lib64/x86_64/libevent-2.0.so.5
17015: trying file=/lib64/libevent-2.0.so.5
17015: trying file=/usr/lib64/tls/x86_64/libevent-2.0.so.5
17015: trying file=/usr/lib64/tls/libevent-2.0.so.5
17015: trying file=/usr/lib64/x86_64/libevent-2.0.so.5
17015: trying file=/usr/lib64/libevent-2.0.so.5
17015:
./memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

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

# ldd /usr/local/memcached/bin/memcached
linux-vdso.so.1 => (0x00007fffd5504000)
libevent-2.0.so.5 => /usr/lib64/libevent-2.0.so.5 (0x00007f2c5c518000)
librt.so.1 => /lib64/librt.so.1 (0x000000374e400000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x000000374e000000)
libc.so.6 => /lib64/libc.so.6 (0x000000374dc00000)
/lib64/ld-linux-x86-64.so.2 (0x000000374d400000)

问题解决

时间: 2024-08-29 18:34:45

关于执行memcached报错问题的相关文章

memcached 笔记之windows 7 下面 安装memcached 报错

windows 7 下面 安装memcached 报错 两种情况: 一:服务确实已经安装过 .如需要重新安装,当然是先memcached.exe -d uninstall 二:奇怪的是服务确实没有安装过的情况,在memcached.exe -d install也会出现上面定位报错.此时关掉cmd窗口  然后以管理员身份运行cmd,在执行上面的install,不出意外你会顺利的执行成功. 常用命令: 安装.卸载.启动.配置相关 -p 监听的端口 -l 连接的IP地址, 默认是本机 -d start

eclipse下执行wordcount报错 java.lang.ClassNotFoundException 解决办法

eclipse下执行wordcount报错 java.lang.ClassNotFoundException 17/08/29 07:52:54 INFO Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS 17/08/29 07:52:54 WARN util.NativeCodeLoader: Unable to load native-hadoop library for y

mysql执行update报错1175解决方法

mysql执行update报错 update library set status=true where 1=1 Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and

转 sqlplus执行sql报错:ORA-01756:

1.sqlplus执行sql报错:ORA-01756: quoted string not properly terminated   分类: 技术 在SQLPLUS中执行SQL文件时发生错误:ORA-01756: quoted string not properly terminated 但是SQL其实是没有问题的,找了很多原因,发现可能是由于使用TOAD导出SQL insert语句,编码集的问题导致的. 首先在.bash_profile文件中添加环境变量指定编码集: export NLS_L

cents上执行wget报错:unable to resolve host address

wget命令报错,无法解析域名"www.keepalived.rog" [[email protected] download]$ wget http://www.keepalived.org/software/keepalived-1.2.12.tar.gz --2014-05-05 11:06:14--  http://www.keepalived.org/software/keepalived-1.2.12.tar.gz Resolving www.keepalived.org.

执行setup,报错 -bash: setup: command not found

执行setup,报错. [[email protected] ~]# setup -bash: setup: command not found 出现这个问题的是因为没有安装setuptool软件 1.安装setuptool [[email protected] ~]# yum install setuptool -y 2.安装系统服务管理 [[email protected] ~]# yum install ntsysv -y 3.安装setup中的防火墙设置 [[email protecte

Windows 和 Linux 中的换行与回车的区别,Windows下编写的Shell脚本,直接放到linux/unix下执行会报错

首先: CR(Carriage Return)表示回车 LF(Line Feed)表示换行 Dos和Windows采用回车+换行(CR+LF)表示下一行而UNIX/Linux采用换行符(LF)表示下一行苹果机(MAC OS系统)则采用回车符(CR)表示下一行 Windows下编写的Shell脚本,直接放到linux/unix下执行会报错,就是因为行结束符不一样导致的. 现在好多文本工具都提供了转换功能,如我常用的,也是最强大的工具 (个人感受,不是打广告):notepad++. 原文地址:htt

python3 UnicodeEncodeError错误,cx_oracle模块执行sql报错:UnicodeEncodeError: 'ascii' codec can't encode characters in position

问题描述: 写了一个执行sql的模块,引用了cx_oracle,在windows机器上完美运行,移植到Centos上就会报错, UnicodeEncodeError: 'ascii' codec can't encode characters in position 检查过程: 代码编码为utf-8,print编码为utf-8,文件编码为utf-8,服务器编码为utf-8,各种正常 定位代码报错位置,开始怀疑是sql执行成功,返回值有中文报错,但是后来通过观察,是传入sql,并没有执行成功,执行

java数据库执行迁移报错Error creating bean with name 'flywayInitializer' defined in class path resource

报错原因 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocati