Install Rust on various platform

Page content

Official document.

WSL (Nov, 2020)

In my environment (Windows Subsystem Linux), I could install as follows.

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

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

echo "export PATH=$HOME/.cargo/bin:$PATH " >> ~/.bashrc

CentOS8

CentOS 8 in GCP. Basically same, but just for a memo.

curl -sSf https://sh.rustup.rs | sh

When memory allocation failed, try to set up RUSTUP_UMPACK_RAM.

https://github.com/rust-lang/rustup/issues/2128

Update Rust

If you install Rust in this way, you can update your Rust by the command below:

rustup update