获取“错误:无法修改Shell配置文件:拒绝许可”使用推荐命令安装Rusup
我尝试使用以下命令安装生锈,该命令由 https://rustup.rs/ for Unixes:for Unixes:
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
。
I tried installing Rust using the below command, which is recommended by https://rustup.rs/ for Unixes:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
but getting an error
error: could not amend shell profile: '/Users/XXXX/.bash_profile'
could not write rcfile file: '/Users/XXXX/.bash_profile'
Permission denied (os error 13)
However, I am using zsh
not bash
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的主目录似乎不是可以崩溃的安装程序的可编辑。
在a 。附加
-s - -y -no-modify-path
bash :另外,您可以将写入权限授予无法编辑或运行的路径此命令带有
sudo
。Your home directory seems to not be editable which crashes the installer.
There seems to be a fix for this discussed in a rustup repo issue. Append
-s -- -y --no-modify-path
tobash
:Alternatively, you could give write permission to the path that couldn't be edited, or run this command with
sudo
.