How to solve: error while loading shared libraries

Problem:

It has happened more than once with me. When I installed an application (freeradius, in this case) from its source code, it gives the following error:

radiusd: error while loading shared libraries:

libfreeradius-radius-2.1.10.so:

cannot open shared object file: No such file or directory

Reason:

The reason for this error is that the libraries have been installed in a place where dynamic linker cannot find it.

Solution:

Whenever I faced such problem, I used the following command. It has never failed me, not till now 😛

sudo /sbin/ldconfig -v

Hope this command solves your problem as well. Do provide me with your feedback, suggestions and questions. Don’t forget to like/vote the post. Enjoy :)