Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install rustup and cargo with a toolchain for all users on Linux?

I am trying to install rustup with clippy, but I am looking way of installing for all users.

I installed rustup in /opt/setup. Whenever I switch users, I get this:

error: no default toolchain configured

If I try to install a toolchain it does not take /opt/setup but /home/user. I specified RUSTUP_HOME and CARGO_HOME in my .bashrc file but still it chooses /home/user. Is there a way to achieve this?

like image 436
KT8 Avatar asked Jun 05 '18 07:06

KT8


1 Answers

As of Apr 16, 2016:

It does not support it now

Even in Sept 10, 2017 the issue is still open, so I'd not wait for it, since installing Rust with clippy is straight forward.

like image 68
Tim Diekmann Avatar answered Sep 22 '22 13:09

Tim Diekmann