Compile bark from source
The first step is to get the code which you can clone from the repository.
git clone https://codeberg.org/ark-bitcoin/bark
cd bark
You will also need a Rust compiler. The rustup-website offers installation instructions for almost any platform.
Additional dependencies can be downloaded using your package manager.
apt update
apt install build-essential clang protobuf-compiler
yum install gcc make clang protobuf-compiler
brew install gcc make llvm@14 protobuf
# TODO: Test this
winget install protobuf ezwinports.make LLVM.LLVM
# This assumes you have enabled some experimental features in nix.
nix develop
You can build the code using cargo
. The cargo build
command will
only build the binary. The cargo install
command will build the the
binary and add it to your path.
cargo build --bin bark
./target/debug/bark --version
cargo install --locked --path ./bark
bark --version
Run bark --version
to verify that the installation completed successfully.