On Aug 24, 2015, at 8:32 AM, Hmidi Slim wrote:

> 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.

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.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/1A0BEF23-33DC-4816-B2EF-68418EA8FE92%40ryandesign.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to