Skip to content

invalid ELF header. The SAP NW RFC SDK could not be loaded on Linux #285

Answered by bsrdjan
sharangthorat asked this question in Q&A
Discussion options

You must be logged in to vote

The problem could be

COPY node_modules $HOME/node_modules

I suppose node_modules on your Windows laptop include node-rfc installed there. The node-rfc is platform dependent and has a binary component for Windows and another one for Linux.

If you installed node-rfc on Windows and copy node_modules from there to docker, the "invalid ELF header" will come up because docker Linux tries to load node-rfc for Windows.

Can you just replace the COPY node_modules ... with npm install node-rfc ? That would install the proper Linux version of node-rfc.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sharangthorat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants