腾讯云轻量上安装Rust编译realm

本文最后更新于 48 天前, 如有失效请评论区留言.

因为某些特殊的场景,需要手动编译低版本内核下的realm

安装

官方方式

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

由于某些特殊的原因,在腾讯云上基本没法使用官方的脚本安装Rust

USTC源安装

wget https://mirrors.ustc.edu.cn/misc/rustup-install.sh
chmod +x rustup-install.sh
export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
bash rustup-install.sh

编译Realm

腾讯云OS选择CentOS7就行啦

git clone https://github.com/zhboner/realm && cd realm
cargo build --release

稍等一会儿就构建ok了, 产物路径如下: target/release/realm

Sponsor

Like this article? $1 reward

Comments

According to the relevant laws and regulations of the People's Republic of China, the comment function of the current website has been disabled. If you need to comment, please visit ysicing.me, but the comments still need to be reviewed by AI.