Skip to content

Build from Source

Build blockd from source using the standard Rust toolchain.

Replace VERSION with the latest release (e.g., 0.3.0-alpha.1) in the commands below.

Example: blockd-0.3.0-alpha.1-x86_64-src.tar.gz

Visit blockd releases page to download the latest release.

  • Under Packages, download blockd-VERSION-src.tar.gz
  • Under Other, download blockd-VERSION-shasums.txt
  • Under Other, download blockd-VERSION-shasums.txt.asc

Confirm the integrity and authenticity of the download and extract:

  1. Verify signature:

    Terminal window
    gpg --verify blockd-VERSION-shasums.txt.asc
  2. Verify checksum:

    Terminal window
    sha256sum -c --ignore-missing blockd-VERSION-shasums.txt
  3. Extract archive:

    Terminal window
    tar xvf blockd-VERSION-src.tar.gz
Terminal window
cd blockd-VERSION
cargo build --release

Navigate to the binary directory, create default directories and copy a configuration template:

Terminal window
cd target/release
mkdir conf ; mkdir var ; mkdir data
cp ../../conf/blockd.example_simple.yml conf/blockd.yml # or conf/blockd.example_tls.yml

Edit conf/blockd.yml and change values for your environment. See Configuration for details.

Terminal window
./blockd