this is my solution:
I move the program to another computer without any lib installed, read the error messeges and copy the lib one by one.
I have to repeat it several time until all library required is cpoied. In some cases, I don’t know where is the lib neither do find it.
Is there any way make it easier?
Use Dependency Walker. It is a free utility that scans EXEs and DLLs, and builds a hierarchical tree diagram of all dependent modules.
Edit:
On linux try binscan or ELF Library Viewer (from SO answer by J-16 SDiZ).