bun: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by bun)

Viewed 4520

I am trying to install bun to wsl and have already added

BUN_INSTALL="/home/jack/.bun" 

and

PATH="$BUN_INSTALL/bin:$PATH" 

to

$HOME/.bashrc 

and when I do bun -v the error shows up.

1 Answers

You might need to upgrade your WSL Ubuntu version. A version that works with Bun is 22.04.

You can check your current version inside a Ubuntu terminal: lsb_release -a

To update:

  1. Go to "Microsoft Store" in the start menu for Windows 10/11.
  2. Download Ubuntu 22.04 LTS

Then proceed to reinstall Bun:

  1. sudo apt install unzip
  2. curl https://bun.sh/install | bash

I've posted about it here

Related