oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
71.89k stars 2.56k forks source link

Raspberry PI: No such file or directory when trying to run bun #6383

Closed grzebla closed 8 months ago

grzebla commented 9 months ago

What version of Bun is running?

1.0.4

What platform is your computer?

Linux 6.1.21-v8+ aarch64 unknown

What steps can reproduce the bug?

I downloaded bun for aarch64 from releases page, extracted it and tried to run. This is what I'm getting:

gblachut@raspberrypi:~ $ bun --version
-bash: /home/gblachut/.bun/bin/bun: No such file or directory

What is the expected behavior?

I also run uname -a. This is the output:

Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
trnxdev commented 9 months ago

can you try to run "file /home/gblachut/.bun/bin/bun" and logging the output here?

grzebla commented 9 months ago

Sure, this is what I get:

gblachut@raspberrypi:~ $ file /home/gblachut/.bun/bin/bun
/home/gblachut/.bun/bin/bun: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[xxHash]=39459b35aacdf1fc, stripped
andreluis-oliveira commented 9 months ago

How did you install Bun?

PaulShiLi commented 9 months ago

Getting the same error here. Ran the commands as shown on the bun website:

curl -fsSL https://bun.sh/install | bash

Currently on a Raspberry Pi 4B

Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
grzebla commented 9 months ago

How did you install Bun?

via curl -fsSL https://bun.sh/install | bash

and then tried to replace it with downloading directly aarch64 binary, but I got same error in all scenarios

0mp commented 9 months ago

It could be that you are running with a 32-bit userland.

For example, even though my uname -a reports aarch64, dpkg --print-architecture reports armhf. I suspect that bun does not work on my system because the binary installed by the installer is expecting a 64-bit userland, which I don't have installed (e.g., there is no /lib/ld-linux-aarch64.so.1 on my system).

grzebla commented 9 months ago

Oh, I see. Such a disappointment. I think there is no other way.

Electroid commented 8 months ago

We are unlikely to support 32-bit architectures. You would need to get a 64-bit Rasberry Pi.

perrydillard commented 6 months ago

Raspberry Pi 5 should support Bun, but you have to install using snap. https://snapcraft.io/install/bunjs/raspbian I just ordered a Pi 5 8GB and plan to run Bun. I'll update this comment when my hardware arrives and I get it installed.