当前位置:网站首页>Rustup installation

Rustup installation

2022-06-13 03:15:00 flyweight_ visitor

Rust

Rustup Important installation information

Rustup

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:

/Users/sjl/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

/Users/sjl/.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:

/Users/sjl/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

/Users/sjl/.profile
/Users/sjl/.zprofile
/Users/sjl/.bash_profile

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:

default host triple: x86_64-apple-darwin
default toolchain: stable (default)
profile: default
modify PATH variable: yes

Cargo structure

Crates Mirror to accelerate

Running cargo build The process may be due to crates Downloading takes a long time , It can be solved through domestic image . The specific way is as follows

vi ~/.cargo/config

[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"

linker cc Can't find

Rust rely on Linux Of C compiler

yum install gcc
yum install cmake
原网站

版权声明
本文为[flyweight_ visitor]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280532045837.html