Not sure if this is a rustup or Homebrew rustup-init issue, but I found that installing rustup-init using Homebrew, and then running rustup-init as a different user resulted in a permissions error (shown below). The result was that rustup would install toolchains, but never set up the binaries in ~/.cargo/bin.
Current installation options:
default host triple: x86_64-apple-darwin
default toolchain: stable
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>
error: failed to set permissions for '/Users/p4nathan/.cargo/bin/rustup'
info: caused by: Operation not permitted (os error 1)
Changing the ownership of /usr/local/bin/rustup-init to the user running rustup averted the issue and everything installed as expected. Maybe I'm weird in that I want one installation of rustup-init but have multiple accounts on the same system using rustup. At least for now I can work around this.
Not sure if this is a rustup or Homebrew rustup-init issue, but I found that installing
rustup-initusing Homebrew, and then runningrustup-initas a different user resulted in a permissions error (shown below). The result was thatrustupwould install toolchains, but never set up the binaries in~/.cargo/bin.Changing the ownership of
/usr/local/bin/rustup-initto the user runningrustupaverted the issue and everything installed as expected. Maybe I'm weird in that I want one installation ofrustup-initbut have multiple accounts on the same system usingrustup. At least for now I can work around this.