Error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such fil, empty dobject
Machine Environment
[Vagrant @ localhost lib64] $ cat/etc/redhat-release
CentOS release 6.4 (Final)
[Vagrant @ localhost lib64] $ uname-
Linux localhost. localdomain 2.6.32-358. el6.x86 _ 64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Memcache startup Error
[Vagrant @ localhost lib64] $/usr/local/memcached/bin/memcached-d-m 50-p 11211-u root-l 0.0.0.0
/Usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
View the associated database required by memcache
[Vagrant @ localhost lib64] $ ldd/usr/local/memcached/bin/memcached
Linux-vdso.so.1 => (0x00007fff50bff000)
Libevent-2.0.so.5 => not found
Librt. so.1 =>/lib64/librt. so.1 (0x00007f70cc128000)
Libpthread. so.0 =>/lib64/libpthread. so.0 (0x00007f70cbf0b000)
Libc. so.6 =>/lib64/libc. so.6 (0x00007f70cbb78000)
/Lib64/ld-linux-x86-64.so.2 (0x00007f70cc337000)
Solution
[Vagrant @ localhost lib64] $ sudo cp/usr/lib/libevent-2.0.so.5/usr/lib64/