rust-lang / rust-lang/rustup

rust won't install on ExFAT filesystem

Open
#2,680 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted O-windows
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Problem
Attempting to install rust via rustup-init on Windows 64bit on a ExFAT filesystem produces the error:

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

Steps
Where E is formated as ExFAT and rustup-init.exe is running from C: and has a filesystem of NTFS. Attempt to start the installer:

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.

Possible Solution(s)
Many other programming languages don't have this issue because they don't rely on links(golang, ruby, php, python etc.). Maybe make it so rust works without links.

Notes

Output of rustup --version: n/a
Output of rustup show: n/a

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the installation through rustup-init.exe on a Windows ExFAT filesystem, with the Rustup and Cargo homes on that volume. Investigate the reported failure creating links from E:\cargo\bin\rustup.exe to rustfmt.exe; done means installation completes without this link error on ExFAT.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.