我尝试使用下面这个命令安装 Rust,这是 Unix 系统上 https://rustup.rs/ 推荐的方法:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
但是出现了错误。
error: could not amend shell profile: '/Users/XXXX/.bash_profile'
could not write rcfile file: '/Users/XXXX/.bash_profile'
Permission denied (os error 13)
然而,我使用的是
zsh
而不是 bash
。
brew install rustup
) - SirDarius