Dfx error on debian WSL2 (Need version manager?)

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

what I did

  1. sh -ci “$(curl -fsSL https://sdk.dfinity.org/install.sh)”

which default to 0.6.26

then realized motoko school recommend 0.7.0

  1. DFX_VERSION=0.7.0 sh -ci “$(curl -fsSL https://sdk.dfinity.org/install.sh)”

now I can’t dfx

I’ve seen other Debian setups with the same issue, the best Linux flavour to use for the latest dfx version is Ubuntu 20.04 or higher.

2 Likes

Yes, Same issue with me.

But if you create a new project dfx new project it works well.

Are you facing the same issue ?