Darkaird
Darkaird

Reputation: 2890

No default toolchain configured after installing rustup

I installed Rust using rustup, 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?

Upvotes: 168

Views: 87729

Answers (4)

wangsir
wangsir

Reputation: 382

I installed rust with root, but my IDE doesn't run as root, so I installed rust without root, all worked well.

Upvotes: 5

FroiD
FroiD

Reputation: 49

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

multirust install stable
multirust default stable

Upvotes: 4

BlackGlory
BlackGlory

Reputation: 4038

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.

Upvotes: 345

Darkaird
Darkaird

Reputation: 2890

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.

Upvotes: 8

Related Questions