After the centos software is installed, the following error occurs:
./Usr/local/bin/memcached
Libevent-2.0.so.5: cannot open shared object file: no such file or directory
Solution to libevent-2.0.so.5: cannot open shared object file: no such file or directory
1.
Run the following command ld_debug = libs/usr/local/bin/memcached-V to find the path.
[[Email protected] bin] # ld_debug = libs/usr/local/memcached/bin/memcached-V
6465: Find library = libevent-1.4.so.2 [0]; Searching
6465: search cache =/etc/lD. So. Cache
6465: 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)
6465: Trying file =/lib64/tls/x86_64/libevent-1.4.so.2
6465: Trying file =/lib64/tls/libevent-1.4.so.2
6465: Trying file =/lib64/x86_64/libevent-1.4.so.2
6465: Trying file =/lib64/libevent-1.4.so.2
6465: Trying file =/usr/lib64/tls/x86_64/libevent-1.4.so.2
6465: Trying file =/usr/lib64/tls/libevent-1.4.so.2
6465: Trying file =/usr/lib64/x86_64/libevent-1.4.so.2
6465: Trying file =/usr/lib64/libevent-1.4.so.2
6465:
/Usr/local/memcached/bin/memcached: Error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: no such file or directory
[[Email protected] #
2.
The search path is shown in,
Find/-nameLibevent-2.0.so.5
[[Email protected] local] # Find/-name libevent-2.0.so.5
/Usr/local/lib/libevent-2.0.so.5
/Data/libevent-1.2/. libs/libevent-2.0.so.5
FindLibevent-2.0.so.5 path
3.
Ln-S/usr/lib64/tls/libevent-1.4.so.2/usr/local/lib/libevent-2.0.so.5
4.
Bin] #./memcached-u root-d
Bin] #
OK, problem solving
Libevent-2.0.so.5: cannot open shared object file: no such file or directory