I get a warning when installing stable-x86_64-unknown-linux-musl on my WSL Linux system

I'm running Linux via WSL on Windows 10.
When I run:
rustup install stable-x86_64-unknown-linux-musl
I get this:
warning: toolchain 'stable-x86_64-unknown-linux-musl' may not be able to run on this system.
But why shouldn't it work? I'm a little confused.

I'm guessing there isn't a musl Rust binary that's pre-built for your platform. You can still build programs using the gnu host but setting musl as the target for your build.

rustup target add x86_64-unknown-linux-musl

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.