From 3e09e509d649cfb97f42e4d8547b4a077caaa520 Mon Sep 17 00:00:00 2001 From: mo8it Date: Sat, 13 Jul 2024 12:00:22 +0200 Subject: [PATCH] Add section about rustlings not found --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 8c1a101c..064451ae 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,17 @@ After installing Rustlings, run the following command to initialize the `rustlin rustlings init ``` +
+If the command `rustlings` can't be found… (click to expand) + +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 + +
+ Now, go into the newly initialized directory and launch Rustlings for further instructions on getting started with the exercises: ```bash