-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
'rustlings' is not recognized as an internal or external command, operable program or batch file. #704
Comments
Hello @captainmaps what's your OS, which versions of Rust and Cargo do you use and how did you install Rustlings? Did you get any errors? I installed it 2 days ago as following:
as described here: https://github.com/rust-lang/rustlings#manually After it, I was able to run |
I use windows 10 and I use the stable build of rust. do you run command 3 like that or do you have to put a path at the end of it? I did use powershell to install it, but some error still happen. PS C:\WINDOWS\system32\rustlings> cargo install --force --path C:\WINDOWS\system32\rustlings Caused by: Caused by: Caused by: Caused by: Caused by: |
The path is the dot Your error is the path:
The backslash is often used for escaping chars. So either try it with a dobule backslash, a normal slash or with the dot |
I tried it with the dot but this warning still comes up: PS C:\WINDOWS\system32\rustlings> cargo install --force --path . I stopped the command after that. |
This issue is probably related to rust-lang/rustup#999 rust-lang/rustup#682 I just re-run the 3 installation steps and it worked as expected. Since your error stack also consists of multiple btw I'm using PoweShell Core: https://github.com/powershell/powershell |
could the execution policy have something to do with this? I think those are affecting scripts running and I have it restricted. Nope. No difference. |
I tried the other method for installing and this is what I found: PS C:\WINDOWS\system32> Start-BitsTransfer -Source https://git.io/JTL5v -Destination $env:TMP/install_rustlings.ps1; Unblock-File $env:TMP/install_rustlings.ps1; Invoke-Expression $env:TMP/install_rustlings.ps1 I don't know if this error is the same as the last method. |
Can you check out this solution https://stackoverflow.com/questions/46232906/git-clone-error-rpc-failed-curl-56-openssl-ssl-read-ssl-error-syscall-errno But they also state, that it's likely a problem with antivirus, firewall, outdated Software etc #668 could also be the solution for you. |
I did have a similar problem before though, it was about an app called itch. It had an error about installing butler. My solution for it was manually downloading butler and putting in the PATH's. Maybe I can do a similar solution to this one. |
The problem here is that the rustlings command doesn't work. The exercises part is working fine, but compiling is where it would take so long. The amount of time it takes to compile coupled with frequently needing to check is not gonna be good. Hence why I need the rustlings command. It checks at intervals so I don't have to wait that long just to know if my solution is right or wrong. |
I finally did it!!! all I had to do was not launch Powershell in administrator and use a different path for installation. |
I must've missed a step in installing rustlings, I am using windows 10 and ran all of the commands to install and when I ran the 'rustlings' command it seems that it doesn't know what it is. I tried editing the PATH's but it still doesn't seem to work.
The text was updated successfully, but these errors were encountered: