No default toolchain configured after installing rustup

后端 未结 4 1623
半阙折子戏
半阙折子戏 2021-01-30 08:08

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:



        
相关标签:
4条回答
  • 2021-01-30 08:30

    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.

    0 讨论(0)
  • 2021-01-30 08:46

    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.

    0 讨论(0)
  • 2021-01-30 08:50

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

    0 讨论(0)
  • 2021-01-30 08:52

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

    multirust install stable
    multirust default stable
    
    0 讨论(0)
提交回复
热议问题