-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal instruction on ARM Linux (raspberry pi) #5495
Comments
Can you turn on core dumps ( |
Sure thing:
|
Either you got a wrong binary or we have an issue with OpenSSL. To rule out a possible build issue on our side, can you build from source? Beware, these builds take around 6 hours on that hardware :) |
Quick check, does |
@bnoordhuis Nope, same error here. |
For reference: all builds seem to fail, I tried several, up to nodejs_4.0.0-1nodesource1~jessie1_armhf.deb. |
Right, the armhf package is for ARMv7. The Raspberry Pi is ARMv6. |
That explains! For reference, node-v4.3.1-linux-armv6l.tar.gz works fine. |
Yeah that download page does explicitly state that only ARMv7 and up are supported, so you guys got a wrong binary. You can download the correct ARMv6 ones at https://nodejs.org/en/download/stable/. As for ARMv6 support in the install script, I'm not sure where to best post a issue, but it might be https://github.com/nodesource/distributions. |
I'm trying to install this on a raspberry pi 2, which as far as I understand is ARMv7 |
@surdu your |
Nope, I ran all this on a raspberry pi 2. |
I've also installed via nodesource on a raspberry pi 1, and I have the same error, or |
So, I am trying to install node.js using
on an RPi 1b and everything seems to unpack and install fine... until I type I type: Any ideas? |
@matt-n |
@matt-n @bnoordhuis The Raspberry Pi 1 is an ARMv6 machine but NodeSource only provides ARMv7 builds. The ARMv7 builds from NodeSource are predestined to result in Illegal Instructions on a Raspberry Pi 1. ARMv6 builds are available at https://nodejs.org/dist/, for example, the latest Node.js v6 build for the Raspberry Pi 1 is |
Thank you! This now works. I appreciate your help! |
Hi. Could someone please re-open this issue and provide a distribution and instructions that work for the raspberry pi 3? |
RPI3 can run ARMv7 (from nodesource) and ARMv8 (from https://nodejs.org/dist/). Note that you need a AArch64 kernel for ARMv8. |
@silverwind thanks for your reply. I did try to install https://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv7l.tar.gz
This script actually worked! |
@chrispauley you should copy everything that comes with it in to /usr, (actually /usr/local is probably your safest bet and easier to clean up). There's only a couple of top-level files like README.md and LICENCE.md that could be excluded. I normally just |
After installing nodejs using the package manager as instructed in the docs on raspbery pi, whenever I try to run either
npm
ornode
I get aIllegal instruction
.I realize that maybe more information are needed, but I don't know what else to add.
The text was updated successfully, but these errors were encountered: