命令是
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=default -t --target x86_64-apple-darwin --no-modify-path
这个命令以前工作得很好,但由于某种原因现在它给了我一个错误。我认为 sh.rustup.rs 已更新,因此它无法读取我的参数 --target x86_64-apple-darwin
还有其他方法在打包服务器上安装 rustc 吗?
您有多余的选项:
-t
和--target
做同样的事情。删除其中一个即可使其正常工作,即。
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=default --target x86_64-apple-darwin --no-modify-path