No default toolchain configured after installing rustup

Rust

Rust Problem Overview


I installed Rust using [rustup][1], but when I try to enter a Rust command like cargo or rustc in my console, the following error appears:

error: no default toolchain configured

Is this a known issue?

[1]: https://www.rust-lang.org/en-US/install.html "rustup"

Rust Solutions


Solution 1 - Rust

If it seems that rustup did not successfully install and configure the stable toolchain, you can do it manually:

rustup install stable
rustup default stable

After testing, it seems like my incomplete installation may have been caused by a network error. You can also try to reinstall to solve the problem.

Solution 2 - Rust

The problem is due to my connection and my proxy which didn't allow rustc, cargo, and others to be downloaded.

I thought that the all the executables were all-in-one but apparently not.

Solution 3 - Rust

In my case, I had multirust installed and the following worked for me:

multirust install stable
multirust default stable

Solution 4 - Rust

I installed rust by root,but my IDEA works on user,then I installed rust on user,all worked well.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDarkairdView Question on Stackoverflow
Solution 1 - RustBlackGloryView Answer on Stackoverflow
Solution 2 - RustDarkairdView Answer on Stackoverflow
Solution 3 - RustFroiDView Answer on Stackoverflow
Solution 4 - RustwangsirView Answer on Stackoverflow