Can’t install rust

When I attempted to install rust via rustup-init.exe I get an error.

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup home directory, located at:

E:\rust

This can be modified with the RUSTUP_HOME
environment variable.

The Cargo home directory located at:

E:\cargo

This can be modified with the CARGO_HOME
environment variable.

The cargo, rustc, rustup and other commands will
be added to Cargo's bin directory, located at:

E:\cargo\bin

This path will then be added to your PATH
environment variable by modifying the
HKEY_CURRENT_USER/Environment/PATH
registry key.

You can uninstall at any time with rustup self
uninstall and these changes will be reverted.

Current installation options:


default host triple: x86_64-pc-windows-msvc
default toolchain: stable (default)
profile: default
modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

error: could not create link from
'E:\cargo\bin\rustup.exe' to
'E:\cargo\bin\rustfmt.exe'

Press the Enter key to continue.

Of course I have already installed Visual Studio Build Tools 2019.

Any ideas?

What kind of file system is on your E drive?

Neither, E is my external portable ssd and my os is on c.

Can you try this?

The C++ build tools are not checked in this screenshot ? Are you sure they are installed ? Rust re-uses, in particular, the C++ linker from Microsoft.

2 Likes

Here you go

yes

The installation process is complaining about it not being able to create a link, and that makes sense if the file system is exFAT, since an exFAT file system does not support links.

How can i fix this without deleting all my data?

The simplest is probably not to install it on that drive. Otherwise I would open an issue on rustup. It surprises me a bit that there are no issues about it, so maybe I am wrong about the cause.

It is possible to reformat the drive to NTFS, would you recommend this?

NTFS is generally a better file system than exFAT, so the main concern would be if you want to use it from a mac, which has only experimental support for NTFS I think.

I don't own a mac, will i be able to use the portable hdd on Android if I switch to NTFS?

Android? I have no idea.

I created an issue which is linked.

Update:

@alice Could you please explain what they mean by proxy functionality?

Quote:

ExFAT does not support filesystem-level links which are required for rustup 's proxy functionality as you surmised in your 'possible solutions'. In theory we could do without the links by creating copies of rustup for each proxy but that would be a significantly wasteful use of disk space.

Also what is a filesystem-level link?

Probably it means that every binary you're running from command line is, in fact, launching rustup with certain arguments, which, in turn, finds and launches the program being requested.