执行
#/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)

问题解决

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

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

    windows 7 下面 安装memcached 报错 两种情况: 一:服务确实已经安装过 .如需要重新安装,当然是先memcached.exe -d uninstall 二:奇怪的是服务确实没有安装 ...

  2. 执行mysqld_safe报错:mysqld does not exist or is not executable

    执行mysqld_safe报错: [root@edu data]# /usr/local/mysql5.7/bin/mysqld_safe --user=mysql160427 12:41:28 my ...

  3. 数据库执行sql报错Got a packet bigger than 'max_allowed_packet' bytes及重启mysql

    准备在mysql上使用数据库A,但mysql5经过重装后,上面的数据库已丢失,只得通过之前备份的A.sql重新生成数据库A. 1.执行sql报错 在执行A.sql的过程中,出现如下错误:Got a p ...

  4. selenium执行js报错

    selenium执行js报错 Traceback (most recent call last):    dr.execute_script(js)  File "C:\Python27\l ...

  5. mysql执行update报错1175解决方法

    mysql执行update报错 update library set status=true where 1=1 Error Code: 1175. You are using safe update ...

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

    1.sqlplus执行sql报错:ORA-01756: quoted string not properly terminated   分类: 技术         在SQLPLUS中执行SQL文件时 ...

  7. js执行函数报错Cannot set property 'value' of null怎么解决?

    js执行函数报错Cannot set property 'value' of null 的解决方案: 原因:dom还没有完全加载 第一步:所以js建议放在body下面执行, 第二步:window.on ...

  8. dotnetcore ef 调用多个数据库时用户命令执行操作报错

    dotnetcore ef 调用多个数据库时用户命令执行操作报错 1.多个DbContext 时报错: 报错: More than one DbContext was found. Specify w ...

  9. mysql执行update报错 Err] 1055 - 'information_schema.PROFILING.SEQ' isn't in GROUP BY

    mysql执行update报错 Err] 1055 - 'information_schema.PROFILING.SEQ' isn't in GROUP BY 今天开发的同事发来如下错误信息,最最简 ...

随机推荐

  1. 解决ListView 缓存机制带来的显示不正常问题

    ListView加载数据原理:系统绘制ListView时,首先会用getCount()函数得到要绘制的这个列表的长度,然后开始逐行绘制.然后调用getView()函数,在这个函数里面首先获得一个Vie ...

  2. 一些js和JQuery的方法

    取值填值: js: get-- innerText, innerHTML, value;  set-- innerText=?, innerHTML=?, value=?; JQuery: get-- ...

  3. Cassandra 学习三 数据模型

       Cassandra如何存储数据的概述. 集群(Cluster) ·Cassandra数据库分布在几个一起操作的机器上.最外层容器被称为集群.对于故障处理,每个节点包含一个副本,如果发生故障,副本 ...

  4. 第十课 go语言函数

    1 内置函数 len() 函数可以接受不同类型参数并返回该类型的长度. 如果我们传入的是字符串则返回字符串的长度, 如果传入的是数组,则返回数组中包含的元素个数. 2  自定义函数 // 函数返回单个 ...

  5. 基于OpenCV的火焰检测(三)——HSI颜色判据

    上文向大家介绍了如何用最简单的RGB判据来初步提取火焰区域,现在我要给大家分享的是一种更加直观的判据--HSI判据. 为什么说HSI判据是更加直观的判据呢?老规矩,先介绍一下HSI色彩模型: HSI颜 ...

  6. springmvc----demo3---rest风格---bai

    input_stu_path.jsp: showinput_stu_path.jsp:

  7. 如何解决SSH登录Solaris主机速度慢的问题

    SSH登录速度慢可能有多种原因. 1. 与DNS有关 缺省情况下,当客户端用SSH登录solaris服务器时,服务器会试图反向解析客户端的IP 地址(即把IP地址解析成机器名).如果Solaris系统 ...

  8. 一个hitbernate配置文件,带几个表(注意mapping);如果连接字符串没有设置utf-8,向insert mysql 会产生乱码(utf8 或 utf-8)

    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuratio ...

  9. JAVA基础知识总结5(面向对象特征之一:继承)

    继 承: 1:提高了代码的复用性. 2:让类与类之间产生了关系,提供了另一个特征多态的前提. 父类的由来:其实是由多个类不断向上抽取共性内容而来的. JAVA只支持单继承.java虽然不直接支持多继承 ...

  10. Python之路:面向对象及相关

    其他相关 一.isinstance(obj, cls) 检查是否obj是否是类 cls 的对象 class Foo(object):     pass   obj = Foo()   isinstan ...