bun icon indicating copy to clipboard operation
bun copied to clipboard

[bun compile] cannot execute: required file not found

Open cfpwastaken opened this issue 9 months ago • 0 comments

What version of Bun is running?

1.1.8+89d25807f

What platform is your computer?

Linux 6.8.7-arch1-1 x86_64 unknown

What steps can reproduce the bug?

  1. Compile any code (in my case for a Raspberry Pi): bun build --compile --target=bun-linux-arm64 ./main.js --outfile app
  2. Install fresh Alpine Linux on a Raspberry Pi and copy over the compiled binary, try to run it
  3. See the error

What is the expected behavior?

It should run my app.

What do you see instead?

Ash says: "not found" Bash says: "cannot execute: required file not found"

Additional information

I did make sure it has chmod +x

cfpwastaken avatar May 10 '24 15:05 cfpwastaken