“--target <targets>...”需要一个值,但安装 rust 时未提供任何值

问题描述 投票:0回答:1

命令是

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 吗?

jenkins rust cargo
1个回答
0
投票

您有多余的选项:

-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
© www.soinside.com 2019 - 2024. All rights reserved.