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