你的位置:首页 > 软件开发 > 操作系统 > ./memcached: error while loading shared libraries: libevent

./memcached: error while loading shared libraries: libevent

发布时间:2015-09-11 19:00:07
编译memcached时,报错没有libevent,于是下载libevent,configure , make && make install ,然后在重新安装memcache成功之后。memcached默认安装在/usr/local/bin/目录下。执行命令 . ...

编译memcached时,报错没有libevent,于是下载libevent,configure , make && make install ,然后在重新安装memcache成功之后。memcached默认安装在/usr/local/bin/目录下。

执行命令 ./memcache -help 报错:

[root@localhost bin]# ./memcached ./memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
所以我们可以如此的在configure时指定路径:示例: whereis libevent, updatedb, locate libevent,

find / -name libevent.*

[root@localhost bin]# find /usr/local -name libevent.*/usr/local/redis-3.0.3/deps/hiredis/adapters/libevent.h/usr/local/src/libevent/libevent.pc.in/usr/local/src/libevent/libevent.pc/usr/local/lib/libevent.la/usr/local/lib/libevent.a/usr/local/lib/pkgconfig/libevent.pc/usr/local/lib/libevent.so[root@localhost bin]# find / -name libevent.so

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:./memcached: error while loading shared libraries: libevent

关键词:ie

ie
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。