When I install a program using apt-get install, it tells me which dependency libraries also need to be installed.
For example, Nginx requires libgd3 (3d graphics library) to be installed.
- When Nginx needs to call code in libgd3 how does it know where the file is and
- How does it actually go about it? I assume it must load it into the Nginx process heap and then use some kind of function table to make calls?
I am not sure how this process works, thanks.
The libraries are in standard path usually /usr/lib which the linker searches during linking. The dynamic libraries are called shared objects in linux having the extension .so . Check this link to know more about Linux Libraries: http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html