Error while loading shared libraries: lib ******: cannot open shared object file: No such file or directory, loading. readobject

Source: Internet
Author: User

Error while loading shared libraries: lib ******: cannot open shared object file: No such file or directory, loading. readobject

After the program is compiled successfully, the runtime error occurs:

Error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

 

Solution:

Open-source libraries such as libevent can be found in the/usr/local/lib directory after compilation and installation by running the following command:

# Whereis libevent-2.0.so.5

Libevent-2.0.so:/usr/local/lib/libevent-2.0.so.5

Whereis cannot find a self-compiled library. Of course, whereis knows where the library is located.

 

After finding the library, make a soft connection or directly copy the file to the corresponding lib library.

Ln-s/usr/lib/libevent-2.0.so.5/usr/lib64/libevent-2.0.so.5

Or

Cp/usr/local/lib/libevent-2.0.so.5/usr/lib


Error in compiling code when installing kernel in Ubuntu1210: cannot open shared object file: no such file or directory

Here is a simple solution:
$ Sudo apt-get install lib32ncurses5 ia32-libs

I personally tested it. OK.
 
Wrong tu12042 compiling linux-35

It is clear that error while loading shared libraries: libz. so.1: cannot open shared object file: No such file or directory

Libz. so.1 cannot be found. This is a symbolic link. It should be linked to libz. so.1.y. z, where y is the version number. Install a libz
 

Related Article

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.