How to install Antelope on Windows using WSL/WSL2

Installation of Antelope binaries on Windows system using WSL (windows subsystem for Linux)

Dario Cesaro avatar
Written by Dario Cesaro
Updated over a week ago

WSL2 is a new version of the Windows Subsystem for Linux (WSL). Windows Subsystem for Linux (WSL) allow developers to install Linux distributions (such as Ubuntu, OpenSUSE, Kali, Debian, Arch Linux, etc) and use Linux applications, utilities, and Bash command-line tools directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup. Its primary goals are to increase file system performance and add full system call compatibility.

This new architecture changes how these Linux binaries interact with Windows and your computer's hardware but provides the same user experience as WSL 1 (the widely available version).

Linux distributions can run either the WSL or WSL2 architecture. Each distribution can be upgraded or downgraded at any time, and you can run WSL and WSL2 distributions side by side. WSL2 uses an entirely new architecture that benefits from running an actual Linux kernel. (Source)

Prerequisites

To install WSL2 on Windows 10 you need:

  • Windows 10 May 2020 (2004), Windows 10 May 2019 (1903), or Windows 10 November 2019 (1909) or later

  • A computer with Hyper-V Virtualization support

Installation of WSL

To install WSL2 on Windows 10 you need to open PowerShell or Windows Command Prompt in administrator mode, enter the following command:

wsl --install

The downloading process will start.

Once installation is finished, you need to reboot your system. Changes will not be effective until the system is rebooted.

After the download process, the Ubuntu 20.04 LTS terminal will appear. You need to enter the user username and password (you will need to remember these credentials for future use):

Now we are using the "Linux" terminal under the Windows system.

The following suggested step is to update the system using the following command:

sudo apt update

sudo apt upgrade will download additional updates for libraries and apps installed in the WSL system.

Now that the system is installed and updated, we can install the Antelope binaries.

I will install the official Antelope binaries from the AntelopeIO/leap repository for this example. The official document about installing Antelope on Linux is available here:

The first step is to install the dependencies required to build:

Install dependencies:

sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
curl \
git \
libboost-all-dev \
libcurl4-openssl-dev \
libgmp-dev \
libssl-dev \
llvm-11-dev \
python3-numpy

The next step is to clone the AntelopeIO/leap repository and navigate to the folder.

I'm going to use /leap as my folder path for installation using the following commands.

git clone --recursive https://github.com/AntelopeIO/leap.git

cd leap to navigate to the leap directory folder.

You can use the clear command to clear the current working directory.

After the download process, we install the package with the command

sudo apt install ./eosio_2.1.0-1-ubuntu-20.04_amd64.deb

The EOSIO v2.1 is now installed.

We can try to execute the cleos command. Cleos is a command-line tool that interfaces with the REST API exposed by "nodeos". Developers can also use cleos to deploy and test EOSIO smart contracts.

Example: "how to get account information from eos mainnet for the account eosio."

The command used is cleos --url=https://eos.greymass.com get account eosio

In this example, we are using the EOS mainnet. The endpoint is specified using attribute --url. If we want to use some "test" network, we can change it to localhost or jungle testnet. Here is the list of available endpoints:


Author: Peter Valencic

Editor: Randall Roland, Markus Hinrichs

Translation: -

Sources & References:

Did this answer your question?