Install Rust on Ubuntu 18.04

By | 2020년 7월 31일
Table of Contents

Install Rust on Ubuntu 18.04

설치하기

apt 와 같은 패키지 매니저를 이용하는 것보다 아래 설치방법이 권장방식이다.

패키지 매니저를 이용하게 되면 오래된 버전의 rust 가 설치될 가능성이 높다고 한다.

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

설치 후 로그아웃 및 재접속을 해야 PATHrustc 가 잡히게 된다.

hello, world

vi hello.rs
fn main() {
    println!("Hello World!");
}
rustc hello.rs
./hello

Hello, World! 가 2.8메가이다.

답글 남기기