0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

openSUSEでRustの環境構築

Posted at

使用環境

  • WSL2
  • openSUSE Leap 15.4

rustupのインストール

ローカルのRust環境の管理にはrustupというツールを用いる1

一般によく採用されるRustのインストール方法は、Rustupというツールを介するものです。このツールはRustインストーラとバージョン管理ツールを兼ねたものです2

sudo zypper in rustup

Rustのツール群をインストール

rustup toolchain install stable

cargorustcのバイナリは~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/binにインストールされる。

PATHに追記

echo export PATH='$PATH:~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin' >> ~/.zshrc
source ~/.zshrc

コンパイル

rustc main.rs
  1. https://en.opensuse.org/Rust

  2. https://www.rust-lang.org/ja/learn/get-started

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?