Skip to content
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

rustup.sh could pass a prefix to install.sh if the user isn't root #15187

Closed
ben0x539 opened this Issue Jun 25, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@ben0x539
Copy link
Contributor

ben0x539 commented Jun 25, 2014

... so we could stop giving people a curl ... | sudo sh commandline and can suggest something like `curl ... | sh -s -- --prefix=~/rust' instead.

This sorta depends on our current rpath setup, but even if we have to suggest a bunch of LD_LIBRARY_PATH magic, it's probably still good to have something to tell people who are uneasy about sudo.

@ghost

This comment has been minimized.

Copy link

ghost commented Oct 20, 2014

I second this. If rustup.sh is going to be recommended installation method, per the guide, then it should have at least this option.

[UPDATE] I see now that rustup does have this option:

$ rustup.sh --prefix=<PATH>
@mkpankov

This comment has been minimized.

Copy link
Contributor

mkpankov commented Jan 16, 2015

I think I'll take a look at this.

The complication is updating ${PATH} and ${LD_LIBRARY_PATH} though. And poking man in the right direction, since for me it doesn't pick up stuff installed in $HOME/install/*.

I intend to match the ${SHELL} variable to know what file to inspect for PATH and LD_LIBRARY_PATH assignments. Then if there is no $HOME/install/bin in $PATH I'd update the assignment and put that into appropriate .*rc file.

@steveklabnik

This comment has been minimized.

Copy link
Member

steveklabnik commented Feb 2, 2016

This should be filed against https://github.com/rust-lang/rustup if it's still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.