arm64 aarch64 rust 在线安装过程

root@69d6b58971b1 \~# ./rustup-init

Welcome to Rust!

This will download and install the official compiler for the Rust

programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup

home directory, located at:

/root/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory is located at:

/root/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to

Cargo's bin directory, located at:

/root/.cargo/bin

This path will then be added to your PATH environment variable by

modifying the profile files located at:

/root/.profile
/root/.bash_profile
/root/.bashrc

You can uninstall at any time with rustup self uninstall and

these changes will be reverted.

Current installation options:

default host triple: aarch64-unknown-linux-gnu

default toolchain: stable (default)

profile: default

modify PATH variable: yes

  1. Proceed with installation (default)

  2. Customize installation

  3. Cancel installation

>1

info: profile set to 'default'

info: default host triple is aarch64-unknown-linux-gnu

info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'

684.2 KiB / 684.2 KiB (100 %) 111.4 KiB/s in 2s ETA: 0s

info: latest update on 2023-09-19, rust version 1.72.1 (d5c2e9c34 2023-09-13)

info: downloading component 'cargo'

7.6 MiB / 7.6 MiB (100 %) 2.3 MiB/s in 2s ETA: 0s

info: downloading component 'clippy'

info: downloading component 'rust-docs'

13.7 MiB / 13.7 MiB (100 %) 6.0 MiB/s in 3s ETA: 0s

info: downloading component 'rust-std'

31.2 MiB / 31.2 MiB (100 %) 3.3 MiB/s in 14s ETA: 0s

info: downloading component 'rustc'

74.7 MiB / 74.7 MiB (100 %) 2.3 MiB/s in 29s ETA: 0s

info: downloading component 'rustfmt'

info: installing component 'cargo'

info: installing component 'clippy'

info: installing component 'rust-docs'

13.7 MiB / 13.7 MiB (100 %) 4.2 MiB/s in 2s ETA: 0s

info: installing component 'rust-std'

31.2 MiB / 31.2 MiB (100 %) 8.1 MiB/s in 3s ETA: 0s

info: installing component 'rustc'

74.7 MiB / 74.7 MiB (100 %) 9.0 MiB/s in 8s ETA: 0s

info: installing component 'rustfmt'

info: default toolchain set to 'stable-aarch64-unknown-linux-gnu'

stable-aarch64-unknown-linux-gnu installed - rustc 1.72.1 (d5c2e9c34 2023-09-13)

Rust is installed now. Great!

To get started you may need to restart your current shell.

This would reload your PATH environment variable to include

Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, run:

source "$HOME/.cargo/env"

测试

root@69d6b58971b1 \~# source ~/.cargo/env

root@69d6b58971b1 \~# rust

rust-analyzer rustc rustdoc rustfmt rust-gdb rust-gdbgui rust-lldb rustup

root@69d6b58971b1 \~# rustc --version

rustc 1.72.1 (d5c2e9c34 2023-09-13)

下载地址

Other installation methods - The rustup book

文件链接

https://static.rust-lang.org/rustup/dist/aarch64-unknown-linux-gnu/rustup-init

相关推荐
星栈1 天前
Dioxus 多页面怎么做:`dioxus-router`、嵌套路由、`Outlet` 和页面组织,一篇给你讲顺
前端·rust·前端框架
Rust研习社3 天前
组合真的优于继承吗?为什么 Rust 和 Go 都拥抱组合舍弃继承?
后端·rust·编程语言
红尘散仙4 天前
想写一个像样的终端 App?试试把 React 的开发体验搬进 Rust TUI
前端·rust
vivo互联网技术4 天前
从 Web 到桌面:基于 Tauri 2.0 + Vue 3 打造 vivo 线下门店「大头贴」拍照体验系统
前端·rust
Rust研习社4 天前
这 8 个 Rust 学习资源值得每个新手收藏起来
后端·rust·编程语言
LDR0065 天前
Type-C 快充全面升级!LDR6601 赋能个人护理便携电机,重塑剃须刀 / 理发器新体验
c语言·开发语言
雪碧聊技术5 天前
Tree.js是什么?一文讲透
开发语言·javascript·ecmascript
码云数智-园园5 天前
C++20 Modules 模块详解
java·开发语言·spring
swordbob5 天前
NIO的channel中什么是 fd(File Descriptor,文件描述符)
java·开发语言·nio
源分享5 天前
Java线程同步的多种实现方法(非常详细)
java·开发语言·jvm