Prerequisites
Before you begin, ensure you have the following installed on your machine:
- Rust: The programming language used to build the Kanari Network. You can install Rust by following the instructions on the official Rust website (opens in a new tab).
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:
- Build Tools for Visual Studio 2022 (opens in a new tab)
- LLVM (opens in a new tab)
- Git (opens in a new tab)
Install Rust
- Download the Rust installer from the official Rust website (opens in a new tab).
- Run the installer and follow the on-screen instructions.
- 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