[Rust] ubuntu(wsl) rust 설치법

[Rust] ubuntu(wsl) rust 설치법

태그
rust
linux
생성 일시
Nov 26, 2023 11:40 AM
최종 편집 일시
Last updated February 2, 2024
Date
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ... source $HOME/.cargo/env
위 명령어를 입력해 설치를 진행하면 된다.
명령어 세부사항(펼치기)
--proto <protocols> 프로토콜을 설정한다.
'=https' --proto 옵션에서 사용할 프로토콜
--tlsv1.2 tlsv1.2 이상의 버전 사용
-sSf
  • s: 진행바를 숨김
  • S: 오류 발생 시 사용자에게 오류 발생을 알리기 위해
  • f: 서버 오류 메시지가 쉘 스크립트로 실행되는 것을 방지하기 위해
 
info: downloading installer 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: ~/.rustup This can be modified with the RUSTUP_HOME environment variable. The Cargo home directory is located at: ~/.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: ~/.cargo/bin This path will then be added to your PATH environment variable by modifying the profile files located at: ~/.profile ~/.bashrc You can uninstall at any time with rustup self uninstall and these changes will be reverted. Current installation options: default host triple: x86_64-unknown-linux-gnu default toolchain: stable (default) profile: default modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation > (자신에게 맞는 값 입력)
 
참고 자료