diff options
| author | mo8it <mo8it@proton.me> | 2024-07-13 12:00:22 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-07-13 12:00:22 +0200 |
| commit | 3e09e509d649cfb97f42e4d8547b4a077caaa520 (patch) | |
| tree | 8e2d43b05ec2ce00377d286c753215c5149612ce /README.md | |
| parent | 99fb11cc72ce57966cb23a3f5cae2bd34ee7ab8e (diff) | |
Add section about rustlings not found
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -53,6 +53,17 @@ After installing Rustlings, run the following command to initialize the `rustlin rustlings init ``` +<details> +<summary><strong>If the command `rustlings` can't be found…</strong> (<em>click to expand</em>)</summary> + +Cargo installs binaries to the directory `~/.cargo/bin`. +You are probably using Linux and installed Rust using your package manager. +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`: +https://www.rust-lang.org/tools/install + +</details> + Now, go into the newly initialized directory and launch Rustlings for further instructions on getting started with the exercises: ```bash |
