我试图通过运行以下程序来安装Rust:
sudo curl https://sh.rustup.rs -sSf | sh
我一直遇到以下错误:
could not write rcfile file: '/Users/pro/.bash_profile'
info: caused by: Permission denied (os error 13
我试图通过运行以下程序来安装Rust:
sudo curl https://sh.rustup.rs -sSf | sh
我一直遇到以下错误:
could not write rcfile file: '/Users/pro/.bash_profile'
info: caused by: Permission denied (os error 13
试着使用这个而不是sudo:
curl https://sh.rustup.rs -sSf | sh -s -- --help
如果这有效,那么你可能可以try :
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path
如果使用--no-modify-path选项的命令有效,则必须手动更新.bash_profile,以将其包含在路径中:
source ~/.cargo/env