Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustup could not choose a version of rustc to run, because one wasn't specified explicitly, and no default is configured #4173

Open
2 tasks done
debski-patrick opened this issue Feb 2, 2025 · 6 comments
Labels

Comments

@debski-patrick
Copy link

Verification

Problem

I'm currently not able to use either Cargo and Rustc for developing my project. I have Rustup 1.27.1 installed on my local machine. I tried to set environment variables and reinstalling it, and restarting the machine, but didn't find the solutions at all. Sharing a screenshot of my CLI as a proof. Please help me to resolve this issue ASAP.

Image

Steps

  1. Download a installation version (rustup-init.exe) from the official Rust website
  2. Run the setup application
  3. Verify the installation (rustc --version)

Possible Solution(s)

No response

Notes

No response

Rustup version

1.27.1

Installed toolchains

Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\AzureSphere\.rustup

OS version

Windows 11 24H2
@ChrisDenton
Copy link
Member

It seems like rustup install stable exited prematurely. Maybe it was killed by some security software?

Try doing rustup install stable & echo %errorlevel% and seeing if the result is non-zero.

@debski-patrick
Copy link
Author

I'm getting "1" as a result. What should I do for now?

@ChrisDenton
Copy link
Member

Yeah, that means it's failing unexpectedly which likely means the process is being killed.

Do you know what security software you have installed? It's possible you could add an exclusion for rustup.exe.

@debski-patrick
Copy link
Author

What is an example of security software you are talking?

@rami3l
Copy link
Member

rami3l commented Feb 5, 2025

@debski-patrick It looks like another program is killing rustup, possibly an antivirus... If, say, rustup itself is the reason why the return code is 1 (abnormal), then it should have at least emitted a warning/error of some sort.

@debski-patrick
Copy link
Author

debski-patrick commented Feb 5, 2025

Here are some of my apps that seem to be related to the security wise:

  • AnyDesk.exe
  • AnyViewer.exe
  • GlassWire 3.4.exe
  • Npcap.exe
  • PuTTY release 0.79 (64bit)
  • VMware Player
  • XAMPP

Which one do you think blocks installing Rust among the above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants