The utility you are looking for in Linux is called ldd . However, your users use the service and do not think about distributing libraries with your program. Ask your users to set the necessary conditions through the appropriate channels. Or, even better, package your software using an appropriate installation system such as RPM, apt or portage (I assume you cannot use the source distribution and autotools); this allows the package management system to automatically resolve dependencies by pulling out any necessary libraries.
Distributing versions of libraries using ad-hoc schemes will only lead to problems for end users (something similar to the DLL add-on in Windows). They may run into conflicts, crashes, and possibly security holes.
You can use ldd to find out which libraries your binary depends on so that you can configure the correct dependencies when creating packages (some packages, like RPM, actually do this for you).
source share