Skip to content
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

Wrong architecture reported by uname on Rasperry Pi 4 causes "cannot execute: required file not found" error #297

Open
kheston opened this issue May 9, 2024 · 0 comments

Comments

@kheston
Copy link

kheston commented May 9, 2024

There is an issue with uname -m on the Raspberry Pi 4 in which the wrong system architecture is reported when a 32-bit OS is used. The result is this error when attempting to run the nvs installer:

pi@raspberrypi:~ $ . "$NVS_HOME/nvs.sh" install
Downloading bootstrap node from https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-arm64.tar.xz
######################################################################################## 100.0%

-bash: /home/pi/.nvs/cache/node: cannot execute: required file not found

To workaround this, I hard-coded the architecture in net.sh.

More specifically, I changed this line:
local NODE_ARCH="$(uname -m | sed -e 's/x86_64/x64/;s/i86pc/x64/;s/i686/x86/;s/aarch64/arm64/')"
to:
local NODE_ARCH="armv7l"

This forces the installer to use a 32bit version of node and the installer succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant