-
Notifications
You must be signed in to change notification settings - Fork 957
PATH not set post installation on OS X 10.11.4 #371
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
Comments
I've made some changes to this code recently, so I wonder if it broke. For reference, here's the post-install text:
So what's supposed to happen is that next time you log out of the OS (or reboot), the Have you logged out and logged back in yet? If you do that do the commands work? Was it unclear that you needed to log out? |
Ah I was confused by the same thing. I've installed other tools in the past that on post-install try to add to the To make matters worse, since I'm using zsh as my shell, I think it might be clearer if the post-install text at least indicated how rustup added Cargo's bin directory to the Alternatively, rustup could entirely avoid appending to any file and just alert the user on post-install that it's up to them to add the Cargo bin directory to their Thanks for your work on rustup by the way! It makes installing rust even easier. =) |
I can confirm this is an issue for me as well; Terminal is reading ~/.bash_profile, not ~/.profile. This seems to be true even after logging out and logging back in. |
I checked what MacPorts does as they need to update the path as well:
I'm not as familiar with linux; would this logic make sense there, too? The man page for bash on OSX says that
I also found this helpful: http://stackoverflow.com/questions/18773051/how-to-make-os-x-to-read-bash-profile-not-profile-file |
For some reason I recall having difficulties detecting the user's preferred shell, like maybe Since it doesn't hurt to append to PATH redundantly I'm still a bit in favor of appending to every relevant file we can locate that already exists, plus unconditionally appending to |
I confirm the issue on my system as well |
not working for me either, on OSX 10.10.5 |
On my system the installer updates |
In the same boat it seems. Need to write to ~/.zprofile but don't see the option to |
I have the same issue on 10.11.6, |
I just had this problem on 10.12.3. The tools get installed in ~/.cargo/bin, and that directory is in my PATH, but the installer fails with this message. |
Quick fix:
if your terminal configured to your username and you are an admin this should work, but this is just a quick fix My OS is 10.11.5 Also check what profile you are using, you can configure one and might end up using some other. I see that that's the case to some people, so if you use Just put |
This happened to me today. While a quick fix is helpful to have, this should be fixed |
So, #2387 fixes this... sortof. Old versions of Mac OSX have an aberrant behavior regarding this, compared to other versions of bash. Newer versions, I think at least since Catalina, have a more normal behavior, partly because they use zsh as their default (which favors So, two ways forward:
|
Can you clarify "new" and "old" versions of OSX? How long ago did the
behavior change?
…On Thu, Jun 25, 2020 at 10:55 PM Jubilee ***@***.***> wrote:
So, #2387 <#2387> fixes this...
sortof.
You see, it fixes it on new versions of Mac, and most versions of Linux
and FreeBSD as well. .bash_profile was never really the intended home for
environment variables, especially not on GUIs, for bash. Mostly that is
what .bashrc is for.
Old versions of Mac OSX have an aberrant behavior regarding this, compared
to other versions of bash. Newer versions, I think at least since Catalina,
have a more normal behavior, partly because they use zsh as their default
(which favors .zshenv), but I am given to understand that new bashes for
Mac are also fixed, and just in general I am not aware of anything actually
stopping you from installing a new bash on an older Mac.
So, two ways forward:
1. If rustup wishes to support older versions of Mac's bash, even
though they use an aberrant behavior, that will increase the code
complexity. However, I would consider it reasonable to author such a fix,
except that I don't have spare old Macs lying around so I am suspicious of
testing it. If anyone wishes guidance in implementing this patch, I can
pair with them on this. @ me on Discord or something.
2. rustup can decide that, since everyone involved admitted it was a
mistake, essentially, and that this is fixable, that this is Clearly Not
Their Problem.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#371 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALPH7THBNUWI2VHUHWJQLRYQE2VANCNFSM4CCIDAKA>
.
|
After discussion and a slight shift in architecture for the patch, this might wind up fixed anyways, so posting might have been premature! ¯_(ツ)_/¯ However, for information: However, we did land on a decision that will address that, and we decided that, because there were other things causing a similar conflict, we will have to do it anyways. However, as of Catalina, there was a changeover to always loading .bashrc on startup of a GUI terminal, which is the convention for GUI terminals. |
To configure your current shell, run: source $HOME/.cargo/env ...this command FINALLY completed the painful installation of Rust. Uuuuugghhh! |
The installer said it would set the path, after installation, but even after installation there's no sign of rustup.
The text was updated successfully, but these errors were encountered: