Rust

Ubuntu へのインストール


参考文献: The Rust Programming Language 日本語版 1.1 インストール
  1. 公式サイト https://rustup.rs/ にアクセスして、 インストール方法を確認する。



  2. rust の開発環境を um590 (Proxmox , 192.168.12.7) 上の VM (105) である Ubuntu24 (192.168.12.250) 上に構築する。
  3. rust をインストールするために次のコマンドをターミナルで実行する。。
  4. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    
  5. インストールの種類を選ぶ
  6. 1) Proceed with standard installation (default - just press enter)   ⇆ 選択した



  7. しばらく待つと、インストールが終了する。



  8. ~/.bashrc の中で PATH 環境変数に $HOME/cargo/bin を含めるように、自動で設定されている。
  9. 現在のシェルで同様の設定を行うには以下のコマンドを実行すること。
         $ . ~/.cargo/env
    
  10. rustup を使って rust-analyzer をインストールする
  11.     $ rustup component add rust-analyzer
        $ rust-analyzer --version
    


http://www.ynitta.com