Hacker News new | ask | show | jobs
by LAC-Tech 1066 days ago
Doesn't work on my system unfortunately (WSL 2)

    LAPTOP-162NUQO7:~$ curl -fsSL https://bun.sh/install | bash
    ######################################################################## 100.0%
    bun was installed successfully to ~/.bun/bin/bun

    Manually add the directory to ~/.bashrc (or similar):
      export BUN_INSTALL="$HOME/.bun"
      export PATH="$BUN_INSTALL/bin:$PATH"

    To get started, run:

      bun --help
    LAPTOP-162NUQO7:~$ ~/.bun/bin/bun
    Error relocating /home/lewis/.bun/bin/bun: unsupported relocation type 37
    Error relocating /home/lewis/.bun/bin/bun: unsupported relocation type 37
    Error relocating /home/lewis/.bun/bin/bun: unsupported relocation type 37
1 comments

That’s an interesting error I haven’t seen before. Are you on the latest Linux kernel for WSL2? Is this WSL2 x64 or arm64?

Are you using musl by chance? Bun requires glibc 2.29+

Yes I'm using musl. Alpine Linux in WSL2.
All alpine users should already know this

https://wiki.alpinelinux.org/wiki/Running_glibc_programs

Node.js works fine, the rustup script correctly determines I'm on a musl system and gives me the right binary.