How do i use standalone installer without sudo privileges?

Hi everyone.

I'm currently trying to run install Rust onto my linux x86_64 with the standalone installer.
I'm forced to use it since i got troubles with rustup, but that's another debate.

While trying to run the install.sh, i face multiple problems cause i don't have sudo privilegies and can't write in /usr/local/bin or other path.

I think , it is due to all the CFG_ path variable that are used.

Is there a simple way to handle it, or do i juste set all var for another file like ~/.tmp and pray for it ?

Thanks a lot.

I think you can pass the installation path using --prefix.

Can you please be a little more precise ?

You could run ./install.sh --prefix /path/to/target/dir if you want to install rustc in /path/to/target/dir.

Thanks for the guess.
Sadly the installer doesn't recognize the --prefix.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.