- macOS在使用官方推荐方式安装rust-lang的时候会报错,如下。
报错指令:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
报错:
could not amend shell profile: ‘/Users/luwangda/.profile’: could not write rcfile file: ‘/Users/***/.profile’: Permission denied (os error 13)
- 改用以下指令安装
正确指令:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --no-modify-path
安装成功
验证cargo可用