How to solve: error while loading shared libraries

Share this article

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 :)

  • Aaron

    You’ve saved me a major headache. Thanks.

  • Sergani

    Thank you very much man! Worked like a charm.
    I was having a problem with SNMP and FreeRadius, and now everything is working great!

    Thanks
    //M

    • https://computerandyou.net/ Abhishek Prakash

      You are welcome

    • https://computerandyou.net/ Abhishek Prakash

      welcome

  • Whoa

    Awesome

  • AJ

    Awesome, thanks for the quick fix.

    • http://computerandu.wordpress.com Abhishek Prakash Chaturvedi

      You are welcome…

  • Pingback: How to solve: fatal: remote origin already exists « Computer And You()