error:while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory

执行 memcached 启动命令时,报错,提示:error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory

查看 memcached 命令缺失什么库ldd /usr/local/bin/memcached
查看 libevent-1.2.so.1 是否存在
locate libevent-1.2.so.1
结果: 系统已经安装了该模块,在路径 /usr/local/lib/
查看 memcached 查找依赖库的路径LD_DEBUG=libs /usr/local/memcached/bin/memcached -v结果: 在 /lib64/ 目录中查找,所以找不到已经安装好的
映射 libevent-1.2.so.1 到 /lib64 路径中
ln -s /usr/local/lib/libevent-1.2.so.1 /usr/lib64/libevent-1.2.so.1结果:这样处理后,memcached就可以搜索到该文件了
启动memcached
/usr/local/bin/memcached -d -c 10240 -m 1024 -u root

原文地址:https://www.cnblogs.com/xiaobiaomei/p/9522163.html

时间: 2024-10-19 05:26:28

error:while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory的相关文章

./jad: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

Ubuntu 上使用jad,出现上面错误: 网上搜索有的建议是这样: 1. Download the package from http://packages.ubuntu.com/dapper/i386/libstdc++2.10-glibc2.2/download2. sudo dpkg -i libstdc++2.10-glibc2.2_2.95.4-24_i386.deb 3. If you don’t have the following items in the package, p

python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory

安装python3遇到报错: wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz ./configure --prefix=/usr/local/Python-3.5.2 --enable-shared make make install ln -s /usr/local/Python-3.5.2/bin/python3 /usr/bin/python3 遇到报错: 解决: 查看动态库情况 ldd /usr/local/Py

/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

python3安装后运行出错:error while loading shared libraries: libpython3.6m.so.1.0

安装好python3后,运行出现下面错误: python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory 解决方案:设置环境变量: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/python3/bin 注:其中/usr/local/python3/为p

伤不起的shared libraries

error while loading shared libraries 案例1:vim: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory 这是我升级python后,删除旧的python库引起的 首先查找命令的安装位置:which vi /usr/bin/vim 然后查看vim使用了哪些链接库,ldd /usr/

【翻译自mos文章】在UNIX中,怎么确定一个特定的可执行程序link的是哪些Shared Libraries ?

在UNIX中,怎么确定一个特定的可执行程序link的是哪些Shared Libraries ? 来源于: How to Determine what Shared Libraries are Linked into an Executable (UNIX) (文档 ID 160308.1) fix: The following commands are used to determine what shared libraries are linked into an executable. F

Ubuntu14.04 ,libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory

[email protected]:/opt$ roslaunch blarospack : error while loading shared libraries: libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory Traceback (most recent call last): File "/home/macname/Desktop/ros/indigo/bi

安装了libevent和memcached之后却发现在执行的时候出现了 error while loading shared libraries问题

今天晚上心血来潮装libevent和memcached,可是却出现了奇葩的问题,结果一看越来是引导文件的路径不对! 我遇到  error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 这样的问题是在安装memcached的时候遇到的. 我按别人的攻略安装了libevent和memcached之后却发现在执行的时候出现了. er

error while loading shared libraries: lib******: cannot open shared object file: No such file or directory

程序编译成功后,运行时错误: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory 解决方法: 像libevent这种开源库,编译安装后,一般在/usr/local/lib目录下,可以通过下列命令查找: #whereis libevent-2.0.so.5 libevent-2.0.so: /usr/local/lib/l

error while loading shared libraries: libevent-2.0.so.5解决办法

CentOS下如何安装libevent 1.下载安装包 新版本是libevent-2.0.10-stable.(如果你的系统已经安装了libevent,可以不用安装)官网:http://www.monkey.org/~provos/libevent/下载:http://www.monkey.org/~provos/libevent-2.0.10-stable.tar.gz 2.解压 # tar zxvf libevent-2.0.10-stable.tar.gz 3.进入目录# cd libev