-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing rustup for all linux users #1085
Comments
If you literally meant installing a system-wide
|
Thanks a lot! |
It's weird, when I tried to add a rustup target as user1 (without sudo) it succeeded even though it shouldn't. But also, when I switch to another user, it can't find rustup (or any of the other rust executables):
Why? |
And I can't even build:
|
Dupe of #313 |
In case anyone is looking for a macOS solution, the following script installs |
Install Rust and rustup in slightly more straightforward directories and unconditionally add it to $PATH instead of weirdly in /root/.cargo. This setup is partially based on <rust-lang/rustup#1085 (comment)>, which is described as unsupported for multiple users but our containers are single-user. The plan is to copy this to the development container as well.
Install Rust and rustup in slightly more straightforward directories and unconditionally add it to $PATH instead of weirdly in /root/.cargo. This setup is partially based on <rust-lang/rustup#1085 (comment)>, which is described as unsupported for multiple users but our containers are single-user. The plan is to copy this to the development container as well.
What's the recommended way to install rustup for all users on a linux machine?
When I run
curl https://sh.rustup.rs -sSf | sh -s
in a root shell, it installs to/root/.cargo
.When I move the
.cargo
folder to/usr/local/share
, the cargo build cache won't be writable by non-root users..The text was updated successfully, but these errors were encountered: