Installation checklist
A guide giving a quick overview of the installation process for getting Ink! smart contracts working
Requirements: Ubuntu 20.04

1. Build Dependencies

Use a terminal shell to execute the following commands:
sudo apt update
sudo apt install -y git clang curl libssl-dev llvm libudev-dev

2. Rust Developer Environment

Use a terminal shell to execute the automation script:
curl https://getsubstrate.io -sSf | bash -s -- --fast

3. Rustup configuration

Use a terminal shell to execute the following commands:
rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

4. Install the Canvas Node

Use a terminal shell to execute the following commands:
cargo install canvas-node --git https://github.com/paritytech/canvas-node.git --tag v0.1.9 --force --locked

5. Install Ink!

Use a terminal shell to execute the following commands:
sudo apt install binaryen
After you've installed the package execute:
cargo install cargo-contract --vers ^0.13 --force –locked

6. Manual update of binaryen to version 101

Go to here:
Download the tar.gz
Extract the file
To create this
You have to install the files manually
Navigate to the following directory
You will need to replace the word ‘linux’ with term right for you.
The following commands copy the contents of the bin, lib64 and include directories from binaryen download to your computer.
Command 1:
sudo cp -r home/linux/Downloads/binaryen-version_101-x86_64-linux/binaryen-version_101/bin/* /bin
Command 2:
sudo cp -r home/linux/Downloads/binaryen-version_101-x86_64-linux/binaryen-version_101/include/* /usr/include
Command 3:
sudo cp -r home/linux/Downloads/binaryen-version_101-x86_64-linux/binaryen-version_101/lib64/* /lib64
Copy link
On this page