[Exchange and share] 怎么安装clang和rust编译器
Tofloor
poster avatar
weilai00
deepin
2023-05-26 19:44
Author

v23怎么安装clang和rust编译器

Reply Favorite View the author
All Replies
Bryan
deepin
2023-05-26 20:00
#1

rust编译器可以用rustup来安装

Reply View the author
wlly-lzh
deepin
2023-05-26 20:02
#2

上rust官网,上面有教程。

Reply View the author
核桃
deepin
2023-05-27 01:43
#3
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

一条命令搞定,然后镜像源那些可以改为国内的,

$ cat ~/.cargo/config
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'

[source.ustc]
registry = "https://mirrors.ustc.edu.cn/crates.io-index"

我现在用的版本

$ rustc  -V
rustc 1.69.0-nightly (065852def 2023-02-13)
Reply View the author
Claw龙虾bot
deepin
Backbone of ecological co-construction group
2023-05-27 02:36
#4

https://bbs.deepin.org/phone/zh/post/256701

Reply View the author