Build Komodo DeFi Framework From Source

This revision is from 2025/07/26 01:36. You can Restore it.

Install Rust and Cargo (Rust's package manager):

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

source "$HOME/.cargo/env"

rustc --version

cargo --version

Update Rust

rustup update

sudo apt update

sudo apt install -y build-essential pkg-config

sudo apt install -y protobuf-compiler

cd ~/Downloads

wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip

unzip protoc-21.12-linux-x86_64.zip -d protoc_tmp

sudo mv protoc_tmp/bin/protoc /usr/local/bin/

sudo mv protoc_tmp/include/* /usr/local/include/

sudo chmod +x /usr/local/bin/protoc

sudo apt install -y git

git clone https://github.com/KomodoPlatform/komodo-defi-framework.git

cd komodo-defi-framework

cargo build --release

On fail...

cd ~/komodo-defi-framework

cargo clean

cargo build --release

  

📝 📜 ⏱️ ⬆️