Error While Loading Shared Libraries, Cannot Open Shared Object File

In the “I wish the Internet had an actual correct answer” category comes a question from a Windows colleague trying to build software on Linux. He asks “I’m trying to do some web performance testing and I compiled weighttp and the libev libraries, which worked fine, but when I try to run the program it gives me the following error.” weighttp: error while loading shared libraries: libev.so.4: cannot open shared object file: No such file or directory “I checked /usr/local/lib and the files are there. Do you have a suggestion?” Ah yes, a classic problem when building software. The problem here is that libev installed itself into /usr/local/lib: $ ls -l /usr/local/lib/libev* -rw-r–r–. 1 root root 435770 Feb 22 15:20 …

Read More