安装及更新rust
教程很多,不详细讲述了,给出几个典型的教程:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
如果有网络问题,参考下面几个教程:
- rust 使用国内镜像,快速安装方法
- linux 安装 rust-lang
- Linux安装Rust
issue
如果安装时出现下面的问题curl: (23) Failure writing output to destination
报错,具体如下
curl: (23) Failure writing output to destination
rustup: command failed: downloader https://mirrors.ustc.edu.cn/rust-static/rustup/dist/x86_64-unknown-linux-gnu/rustup-init /tmp/tmp.NYHsHHrYc1/rustup-init x86_64-unknown-linux-gnu
sudo snap list | grep curl
sudo snap remove curl
sudo apt install curl
参考自Rustup install fails on ubuntu 20.10
常用命令
rustup show
rustup update
rustup self uninstall
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)