Libevent-2.0.so.5 not found solution to ldd in CentOS
When installing memcache, you need to create a file index or link, similar to the shortcut in windows.
Error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
> Whereis libevent-2.0.so.5
Libevent-2.0.so.5:/usr/local/lib/libevent-2.0.so.5
> Ldd/usr/local/bin/memcached(Check if the ldd command is unfamiliar)
Libevent-2.0.so.5 => not found(The file is not found)
Libpthread. so.0 =>/lib64/libpthread. so.0 (0x00002b83fce0e000)
Libc. so.6 =>/lib64/libc. so.6 (0x00002b83fd029000)
Librt. so.1 =>/lib64/librt. so.1 (0x00002b83fd381000)
/Lib64/ld-linux-x86-64.so.2 (0x00002b83fc9b0000)
> LD_DEBUG = libs./memcached-v
Find the default path/usr/lib/
> Sudo ln-s/usr/lib/libevent-2.0.so.5/usr/lib64/libevent-2.0.so.5
> Sudo ldd/usr/local/bin/memcached
Libevent-2.0.so.5 =>/usr/lib64/libevent-2.0.so.5 (0x00002b83fcbcd000)
Libpthread. so.0 =>/lib64/libpthread. so.0 (0x00002b83fce0e000)
Libc. so.6 =>/lib64/libc. so.6 (0x00002b83fd029000)
Librt. so.1 =>/lib64/librt. so.1 (0x00002b83fd381000)
/Lib64/ld-linux-x86-64.so.2 (0x00002b83fc9b0000)
Now ,:)