美文网首页
如何在Linux中安装Rust编程语言

如何在Linux中安装Rust编程语言

作者: Then丶 | 来源:发表于2020-02-17 11:24 被阅读0次

在Linux中安装Rust编程语言

在Linux中安装Rust

```

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

```

选1 确定

安装完成后

```

vim ~/.profile

#添加下面命令到末尾即可。

export PATH="$HOME/.cargo/bin:$PATH"

```

接下来,使用修改后的PATH来源~/.profile文件,并通过运行这些命令配置当前shell以使用Rust环境。

 source ~/.profile

source ~/.cargo/env

查看Rust的版本:

```

 rustc --version

```

相关文章

网友评论

      本文标题:如何在Linux中安装Rust编程语言

      本文链接:https://www.haomeiwen.com/subject/rkhbfhtx.html