Most of the programs use dynamic linked libraries so that they can take advantage of pre-prepared procedures in those libraries. However, if such a program doesn’t find the required library present on the system, it won’t run. In such a situation, you can use the ‘ldd’ command to check how many libraries that program is dependent on.

# ldd /bin/bash
/bin/bash: => /lib/ (0x40018000) => /lib/ (0x4001c000)
/lib/ => /lib/ (0x40000000)

The above command checks the dependency of bash and it shows the bash program is dependent upon 3 DLLs.

Adnan Khurshid

Adnan Khurshid, the author of this article, has been working in a telecommunication sector since 2007. He has worked there as a VAS (Value Added Services) engineer and has excelled remarkably in the field. Working in this field has been his passion and he has always made efforts to keep himself up to date. Find more about him on LinkedIn

More Posts

Tags: , ,

1 Comment on How to check shared libraries dependencies in Linux

  1. Christian L'Écuyer says:

    Many thanks for this info. Saved a lot of time!
    Have a great day!

Leave a Reply