Installation

Prerequisites

Before you begin, ensure you have the following installed on your machine:

Compile and install

Ubuntu

Install dependencies

sudo apt  install git curl cmake make gcc lld pkg-config libssl-dev libclang-dev libsqlite3-dev g++ protobuf-compiler

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Clone the repository

git clone git clone https://github.com/kanari-network/kanari-sdk.git

Compile and install Kari

cd kanari-sdk && cargo build --release && cp target/release/kari ~/.cargo/bin

Windows

Install dependencies

To compile kanari on Windows, you'll need to install the following dependencies:

  1. Build Tools for Visual Studio 2022 (opens in a new tab)
  2. LLVM (opens in a new tab)
  3. Git (opens in a new tab)

Install Rust

  1. Download the Rust installer from the official Rust website (opens in a new tab).
  2. Run the installer and follow the on-screen instructions.
  3. After installation, open a new Command Prompt or PowerShell window and verify the installation by running:
rustc --version

Clone the repository

git clone https://github.com/kanari-network/kanari-sdk.git

Compile and install Kari

cd kanari-sdk
cargo build --release
cp target/release/kari ~/.cargo/bin