node-packer icon indicating copy to clipboard operation
node-packer copied to clipboard

Include external libraries

Open jgoux opened this issue 8 years ago • 0 comments

Hello,

I compiled a node.js app relying on node-oracledb. This library has external dependencies (I assume it uses dynamic linking) so I have to install these on my production environment in order to make my app works.

If I don't I get this error :

(node:822) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: libclntsh.so.11.1: cannot open shared object file: No such file or directory

Is there any way to include these external dependencies in the generated binary so I could distribute it more easily?

I think this thread is related to my issue : https://github.com/oracle/node-oracledb/issues/458#issuecomment-227514707

All the external files to include are identified, now I need a way to put them inside the binary. (maybe @cjbj has a solution?)

Thanks for your help!

jgoux avatar Dec 06 '17 10:12 jgoux