Skip to content
This repository was archived by the owner on Jul 4, 2022. It is now read-only.

Set up the compiler toolchain environment for Windows

Roy Sirui Yang edited this page Apr 23, 2020 · 11 revisions

For Windows, Plug requires the Linux subsystem to build. Reference: https://docs.microsoft.com/en-us/windows/wsl/

Enable Linux Subsystem

  1. Open your Windows PowerShell (you may need to run using Administrator Privilege), run this command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  1. Go to Microsoft Store and search for “Linux”, then select “Ubuntu”. Click Install
  2. Once the installation is complete, click “Launch” to start Ubuntu Linux system. Ubuntu will finish installing after a while and prompt you to create a new Username and Password.

Now you should be able to use Ubuntu via the CLI. To access your HDD, use

$cd /mnt/<drive letter>/<path>

Note: To be able to “paste” commands into your Ubunto shell, right-click on the Windows border to open up a menu, select “Properties”, and tick “Use Ctrl+Shift+C/V as Copy/Paste”. Selecting “Quick Edit Mode” allows you to paste by right-clicking the console window.

  1. Update the native package manager:

sudo apt update

  1. Install required tool-chain for Linux:

sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential clang libclang-dev

Now your Linux is ready to install Rust.

PL^G


Getting Started


PL^G Component Guides


Advanced Topics


External Links

Clone this wiki locally