rust-lang / rustlings

:crab: Small exercises to get you used to reading and writing Rust code!
https://rustlings.cool
MIT License
52.69k stars 10.02k forks source link

rustlings command not found #2047

Closed rudy-in closed 2 months ago

rudy-in commented 2 months ago

i followed the docs and when i tried to run rustlings init it said rustlings: command not found

mo8it commented 2 months ago

Probably the same issue here: https://github.com/rust-lang/rustlings/issues/2046

You are probably using Linux and ~/.cargo/bin is not in your PATH environment variable.

The easiest way to fix this is to uninstall Rust from your package manager and install it using rustup with the official way: https://www.rust-lang.org/tools/install