cannot open shared object file: No such file or directory

16 views
Skip to first unread message

Hmidi Slim

unread,
Aug 28, 2015, 10:42:07 PM8/28/15
to nodejs
I'm actually creating a Nodejs application which I tested for my pc and it works very well.When I cross compile it for ARM architecture and I run node app.js I got this error:
module.js:356
  Module._extensions[extension](this, filename);
                               ^
Error: /home/slim/Bureau/a/build/Release/example.node: cannot open shared object file: No such file or directory
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/slim/Bureau/a/app.js:21:8)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

example.node a module wich I created using node-gyp.

Ryan Schmidt

unread,
Aug 28, 2015, 11:57:45 PM8/28/15
to nod...@googlegroups.com
On which system did you run "npm install" -- on your PC, or on the ARM machine? Compiled npm modules need to be compiled for the machine they will run on. So in this case, of you want to run your program on your ARM machine, you may need to run "npm install" (or "npm rebuild", if the module is already installed) on the ARM machine first.

Reply all
Reply to author
Forward
0 new messages