赞
踩
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
进行配置环境我这里使用的是.zshrc
vim ~/.zshrc
在文件中添加(这里需要根据情况进行配置)
PATH="$HOME/.cargo/bin:$PATH"
export PATH
生效配置
source ~/.zshrc
source ~/.bash_profile
执行命令
rustc --version
根据版本获得结果集说明安装完成
rustc 1.76.0 (07dca489a 2024-02-04)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。