These are chat archives for rust-lang/rust

28th
Dec 2016
Igor
@target-san
Dec 28 2016 10:33

Hi, I'm experiencing strange issue with latest rustup
OS: Windows 10 Pro x64
Installed via official rustup-init yesterday
Issue: whenever I run any of the proxy binaries (rustc, cargo etc.) I receive:

error: command failed: 'cargo.EXE'
info: caused by: The system cannot find the file specified. (os error 2)

'cargo.EXE' changes according to what proxy binary I run.
Although proxy binaries run Ok in one particular case - when I run them from the directory they reside in.
Stable toolchain is present.
Could anyone plz advice on how to diagnose root cause?

Aleksey Kladov
@matklad
Dec 28 2016 10:36
rustup recently has changed toolchain locations from ~/.multirust to ~/.rustup. Theoretically it should have migrated automatically, but maybe migration has failed in your case? You can try removing ~/.rustup and ~/.multirust directories and reinstalling toolchains.
Igor
@target-san
Dec 28 2016 10:39
I didn't have rustup installed until yesterday. But I'll check that, thanks
Igor
@target-san
Dec 28 2016 11:04

@matklad Sadly that didn't help. Dropped ~/.multirust and ~/.rustup, reinstalled everything via

rustup set default-host i686-pc-windows-msvc
rustup install stable
rustup default stable

and it stopped to work completely - responds with the error above each time

Aleksey Kladov
@matklad
Dec 28 2016 11:07
@target-san and is ~/.cargo/bin added to $PATH?
Igor
@target-san
Dec 28 2016 11:11
Sure.
Pretty interesting.
It seems that rustup-init.exe creates hardlinks named rustup.exe, cargo.exe etc. in ~/.cargo/bin
I dropped all those hardlinks, moved rustup-init.exe there, renamed to rustup.exe and added symlinks to all other tool proxies.
And it started to work as expected.
It seems to do something with the location of original hardlinked file
Aleksey Kladov
@matklad
Dec 28 2016 11:13
Hm, looks like it might be rust-lang-nursery/rustup.rs#886 (cargo.EXE with upper case EXE)
Igor
@target-san
Dec 28 2016 11:18
Thanks, that may be the actual case.