deepin安装rust

一、环境

操作系统:deepin V23

二、下载离线安装包

下载链接:

https://forge.rust-lang.org/infra/other-installation-methods.html

https://static.rust-lang.org/dist/rust-1.85.0-x86_64-unknown-linux-gnu.tar.xz

当时最新稳定版本为1.85。

三、解压

tar -xJvf rust-1.85.0-x86_64-unknown-linux-gnu.tar.xz

四、安装

$ cd rust-1.85.0-x86_64-unknown-linux-gnu

$ sudo ./install.sh

install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh

install: installing component 'rustc'

install: installing component 'rust-std-x86_64-unknown-linux-gnu'

install: installing component 'rust-docs'

install: installing component 'rust-docs-json-preview'

install: installing component 'cargo'

install: installing component 'rustfmt-preview'

install: installing component 'rls-preview'

install: installing component 'rust-analyzer-preview'

install: installing component 'llvm-tools-preview'

install: installing component 'clippy-preview'

install: installing component 'rust-analysis-x86_64-unknown-linux-gnu'

install: installing component 'llvm-bitcode-linker-preview'

rust installed.

五、验证

$ rustc --version

rustc 1.85.0 (4d91de4e4 2025-02-17)

$ cargo --version

cargo 1.85.0 (d73d2caf9 2024-12-31)

相关推荐
qq_447663053 分钟前
《Spring日志整合与注入技术:从入门到精通》
java·开发语言·后端·spring
蜡笔小新星9 分钟前
OpenCV中文路径图片读写终极指南(Python实现)
开发语言·人工智能·python·opencv·计算机视觉
七七知享17 分钟前
2024 Qiniu 跨平台 Qt 高级开发全解析
开发语言·qt·零基础·操作系统·跨平台·qt5·精通
脏脏a31 分钟前
C 语言分支与循环:构建程序逻辑的基石
c语言·开发语言
结衣结衣.1 小时前
【Qt】带参数的信号和槽函数
开发语言·qt·c++11
冷琴19961 小时前
基于Python+Vue开发的电影订票管理系统源码+运行步骤
开发语言·vue.js·python
L Jiawen1 小时前
【Python 2D绘图】Matplotlib绘图(统计图表)
开发语言·python·matplotlib
Run_Teenage1 小时前
C语言每日一练——day_4
c语言·开发语言
SongYuLong的博客1 小时前
C# WPF 串口通信
开发语言·c#·wpf
熊峰峰2 小时前
数据结构第六节:二叉搜索树(BST)的基本操作与实现
开发语言·数据结构·c++·算法