Error while Running NodeJs on ARMv7 IMX6Q Board, How to fix it?

心不动则不痛 提交于 2019-12-20 07:15:16

问题


What I Want : I want to run nodejs on ARMv7 freescale imx6q board with no internet but network connectivity.

What I did : I took pre built binary from nodejs official download. extracted them and tried to run node binary. But it throws error "No such file or directory". I have tried changing permissions also. Have a look at logs below.

mx6q:/node/node-v5.9.0-linux-armv7l/bin# ls
node  npm
mx6q:/node/node-v5.9.0-linux-armv7l/bin# ./node
bash: ./node: No such file or directory
mx6q:/node/node-v5.9.0-linux-armv7l/bin# ls -l
total 22084
-rwxr-xr-x    1 root     root      22612411 Jan  1 03:37 node
lrwxrwxrwx    1 root     root            38 Jan  1 01:04 npm -> ../lib/node_modules/npm/bin/npm-cli.js
mx6q:/node/node-v5.9.0-linux-armv7l/bin# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 1988.29
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

processor       : 1
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 1988.29
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

processor       : 2
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 1988.29
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

processor       : 3
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 1988.29
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

Hardware        : Freescale i.MX6 Quad/DualLite (Device Tree)
Revision        : 63012
Serial          : d4111f0ec91719d8
mx6q:/node/node-v5.9.0-linux-armv7l/bin# file node
node: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=e7c667ffc2519bf31b963b29954863c673be6fba, not stripped
mx6q:/node/node-v5.9.0-linux-armv7l/bin#

Anybody who has worked on the same or have any lead, How to overcome this error ?


回答1:


As @Notlikethat suggested, Pre-built binary was looking for /lib/ld-linux-armhf.so.3 and was not available.

Compiling source code in my own environment worked fine.



来源:https://stackoverflow.com/questions/36085323/error-while-running-nodejs-on-armv7-imx6q-board-how-to-fix-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!