Libevent-2.0.so.5: cannot open shared object file: no such file or directory

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.