Centos install rust error : curl: option --proto: is unknown
Closed this issue · 1 comments
xingangshi commented
when use curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
to install rust in centos, detail error info as following:
[root@localhost ~]# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl: option --proto: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
xingangshi commented
Resoltion, use the command curl https://sh.rustup.rs -sSf | sh
Detail cmds :
[root@localhost ~]# curl https://sh.rustup.rs -sSf | sh
info: downloading installer
...
[root@localhost ~]# source $HOME/.cargo/env
[root@localhost ~]# rustc --version
rustc 1.43.1 (8d69840ab 2020-05-04)
[root@localhost ~]# cargo --version
cargo 1.43.0 (2cbe9048e 2020-05-03)