Perform
#/usr/local/memcached/bin/memcached
The following error is then shown:
./memcached:error while loading shared libraries:libevent-2.0.so.5:cannot open Shared object file:no such file or dire Ctory
Can't find the Libevent-2.0.so.5 file
Here's how to fix it:
# 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 dire Ctory
# 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)
Problem solving
About executing memcached error problem