On Windows there is a tool Depends.exe to discover dependency of an EXE/DLL file on other DDLs. Which commandline tool is equivalent on Mac OS and Linux?
try ldd in the terminal. This will provide you a list of dynamic libraries that the binary needs.