缺少libevent-1.3e.so.1的解决方法

2,测试运行
[root@datam memcached-1.2.2]# /usr/local/bin/memcached -h
/usr/local/bin/memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory
出错了,怎么办?
进行检查
[root@datam memcached-1.2.2]# LD_DEBUG=libs memcached -v
4962:find library=libevent-1.3e.so.1 [0]; searching
4962:search cache=/etc/ld.so.cache
4962: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)
4962:trying file=/lib64/tls/x86_64/libevent-1.3e.so.1
4962:trying file=/lib64/tls/libevent-1.3e.so.1
4962:trying file=/lib64/x86_64/libevent-1.3e.so.1
4962:trying file=/lib64/libevent-1.3e.so.1
4962:trying file=/usr/lib64/tls/x86_64/libevent-1.3e.so.1
4962:trying file=/usr/lib64/tls/libevent-1.3e.so.1
4962:trying file=/usr/lib64/x86_64/libevent-1.3e.so.1
4962:trying file=/usr/lib64/libevent-1.3e.so.1
4962:
memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory
进行处理:
[root@datam memcached-1.2.2]# ln -s /usr/lib/libevent-1.3e.so.1 /usr/lib64/libevent-1.3e.so.1

你可能感兴趣的:(libevent)