Linux when the program is prompted to error while loading shared?

  

When Linux executes certain programs, there are error and loading shared libraries error prompts. I believe many of my friends have encountered this problem. In fact, this problem is not difficult to solve. Let's take a look at it with Xiaobian.

Solution:

. /tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory

This type of error indicates that the system does not know which directory xxx.so is placed in, At this time, you must add the directory where xxx.so is located in /etc/ld.so.conf.

In general, there are a lot of so will be stored in the /usr/local/lib directory, look under the directory, and found the .so file you need.

So, add /usr/local/lib to /etc/ld.so.conf. After saving, run: /sbin/ldconfig –v to update the configuration.

The above is the solution to the error while loading shared libraries when Linux executes the program. If you encounter the same problem, you can add the directory where xxx.so is located in /etc/ld.so.conf. Update the configuration.

Copyright © Windows knowledge All Rights Reserved