mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-21 21:42:23 -05:00
Update section about command not found
This commit is contained in:
parent
3e09e509d6
commit
12d1971b0d
1 changed files with 4 additions and 3 deletions
|
@ -54,11 +54,12 @@ rustlings init
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>If the command `rustlings` can't be found…</strong> (<em>click to expand</em>)</summary>
|
<summary><strong>If the command <code>rustlings</code> can't be found…</strong> (<em>click to expand</em>)</summary>
|
||||||
|
|
||||||
|
You are probably using Linux and installed Rust using your package manager.
|
||||||
|
|
||||||
Cargo installs binaries to the directory `~/.cargo/bin`.
|
Cargo installs binaries to the directory `~/.cargo/bin`.
|
||||||
You are probably using Linux and installed Rust using your package manager.
|
Sadly, package managers often don't add `~/.cargo/bin` to your `PATH` environment variable.
|
||||||
Sadly, these package managers often don't add `~/.cargo/bin` to your `PATH` environment variable.
|
|
||||||
The solution is to either add it manually or to uninstall Rust from the package manager and isntall it using the official way with `rustup`:
|
The solution is to either add it manually or to uninstall Rust from the package manager and isntall it using the official way with `rustup`:
|
||||||
https://www.rust-lang.org/tools/install
|
https://www.rust-lang.org/tools/install
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue