rustup icon indicating copy to clipboard operation
rustup copied to clipboard

Could not create link from "cargo/bin/rustup" to "cargo/bin/rust-analyzer", Operation not permitted (os error 1)

Open TahaCoder43 opened this issue 2 years ago • 1 comments

Problem

I am trying to install rust on another usb device using rustup. I used CARGO_HOME and RUSTUP_HOME env variables to setup rustup path to be on the specific usb drive, when I install rustup it did not install and showed this error I used sudo before sh and it installed, but it didnt install any of the tool chains, so I found ansnwer to stack overflow that advised to type in the terminal "rustup install stable" So I did and it showed this error again, I tried again with sudo still showing this error

Steps

install rust with rustup on a differnet usb drive or maybe even path

add environment variables RUSTUP_HOME and CARGO_HOME to the path your installing to

run curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo sh

then when installed change the option of changing the path variable to no once installed add rustup to path then use rustup install stable to install rust

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.72.0 (5680fa18f 2023-08-23)`

Installed toolchains

Default host: x86_64-unknown-linux-gnu
rustup home:  /media/elite_dev/Ventoy/softwares/rustup/

stable-x86_64-unknown-linux-gnu (default)
rustc 1.72.0 (5680fa18f 2023-08-23)

TahaCoder43 avatar Sep 17 '23 11:09 TahaCoder43

99% likelyhood that your USB device is formatted with a FAT variant filesystem, which do not support links. If you reformat it with ext4 / btrfs or some other regular filesystem, this should work fine.

rbtcollins avatar Sep 17 '23 15:09 rbtcollins