libevent-2.0.so.5: cannot open shared object file: No such file or directory

centos 安装软件后出现:

./usr/local/bin/memcached

解决libevent-2.0.so.5: cannot open shared object file: No such file or directory解决方法  

1.

用以下命令LD_DEBUG=libs /usr/local/bin/memcached -v  查看寻找的路径是哪里

[[email protected] bin]# LD_DEBUG=libs /usr/local/memcached/bin/memcached -v

6465:     find library=libevent-1.4.so.2 [0]; searching

6465:      search cache=/etc/ld.so.cache

6465:      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)

6465:       trying file=/lib64/tls/x86_64/libevent-1.4.so.2

6465:       trying file=/lib64/tls/libevent-1.4.so.2

6465:       trying file=/lib64/x86_64/libevent-1.4.so.2

6465:       trying file=/lib64/libevent-1.4.so.2

6465:       trying file=/usr/lib64/tls/x86_64/libevent-1.4.so.2

6465:       trying file=/usr/lib64/tls/libevent-1.4.so.2

6465:       trying file=/usr/lib64/x86_64/libevent-1.4.so.2

6465:       trying file=/usr/lib64/libevent-1.4.so.2

6465:

/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory

[[email protected]]#

2.

寻找的路径为上图所示,

find / -name libevent-2.0.so.5 

[[email protected] local]# find / -name libevent-2.0.so.5

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

/data/libevent-1.2/.libs/libevent-2.0.so.5

找到libevent-2.0.so.5 路径

3.

ln -s /usr/lib64/tls/libevent-1.4.so.2 /usr/local/lib/libevent-2.0.so.5

4.

bin]# ./memcached -u root -d

bin]#

OK,问题解决

时间: 2024-10-08 10:41:29

libevent-2.0.so.5: cannot open shared object file: No such file or directory的相关文章

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

Windows 上静态编译 Libevent 2.0.10 并实现一个简单 HTTP 服务器(无数截图)

[文章作者:张宴 本文版本:v1.0 最后修改:2011.03.30 转载请注明原文链接:http://blog.s135.com/libevent_windows/] 本文介绍了如何在 Windows 操作系统中,利用微软 Visual Studio 2005 编译生成 Libevent 2.0.10 静态链接库,并利用 Libevent 静态链接库,实现一个简单的 HTTP Web服务器程序:httpd.exe. 假设 Visual Studio 2005 的安装路径为“D:\Program

Windows 上静态编译 Libevent 2.0.10 并实现一个简单 HTTP 服务器(图文并茂,还有实例下载)

[文章作者:张宴 本文版本:v1.0 最后修改:2011.03.30 转载请注明原文链接:http://blog.s135.com/libevent_windows/] 本文介绍了如何在 Windows 操作系统中,利用微软 Visual Studio 2005 编译生成 Libevent 2.0.10 静态链接库,并利用 Libevent 静态链接库,实现一个简单的 HTTP Web服务器程序:httpd.exe. 假设 Visual Studio 2005 的安装路径为“D:\Program

libsvn_client-1.so.0: cannot open shared object file: No such file or directory

源码安装好svn后,会有以下的报错: libsvn_client-1.so.0: cannot open shared object file: No such file or directory 解决办法; 执行ldconfig命令 #ldconfig svn程序启动时,加载某些动态库失败.共享库大多在/usr/lib./lib./usr/local/lib等,源码安装svn后,在共享库新添加了库文件,必须执行ldconfig命令更新/etc/lo.conf里对应的项.一般rpm包安装会自动执

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

CentOS-6.3 编译erlang-otp 17.0 报relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC错误

编译erlang otp 17.0 一直提示:/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC 参考了一下这个:http://blog.csdn.net/zhongruixian/article/det

关于 unable to load shared object 'C:\Program Files\R\R-3.0.3\library\stats\libs\i386\stats.dll'

这个问题花了我3个小时差文档解决.最终一位外国朋友解答了我的问题:http://rdotnet.codeplex.com/workitem/117 其实这个问题很简单就是,在R目录下的:C:\Program Files\R\R-3.0.3\library\stats\libs\i386这个目录下,拷贝一份:这个目录下的文件:C:\Program Files\R\R-3.0.3\bin\i386.然后就ok了. 看了这份回答,估计你都得喊哥了. 关于 unable to load shared o

Windows 上静态编译 Libevent 2.0.10 并实现一个简单 HTTP 服务器

Windows 上静态编译 Libevent 2.0.10 并实现一个简单 HTTP 服务器  大 | 中 | 小  [ 2011-3-30 08:40 | by 张宴 ] [文章作者:张宴 本文版本:v1.0 最后修改:2011.03.30 转载请注明原文链接:http://blog.zyan.cc/libevent_windows/] 本文介绍了如何在 Windows 操作系统中,利用微软 Visual Studio 2005 编译生成 Libevent 2.0.10 静态链接库,并利用 L

动态链接库找不到 : 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: