Setup a local environment
This guide provides instructions for setting up a local Bonsol development environment. Whether you're contributing to the project or building with Bonsol, this documentation will help.
Requirements
cargo --version
rustc --version
solana --version
pnpm --versionLocal environment setup
1
git clone https://github.com/bonsol-collective/bonsol
cd bonsol2
# Install the prover to the default location (current directory)
./bin/install_prover.sh
# Or specify a custom installation location
./bin/install_prover.sh --prefix /path/to/install3
# Set up local environment
./bin/setup.sh
# Or specify a custom installation prefix if you used one for install_prover.sh
./bin/setup.sh --prefix /path/to/install4
# Start a local validator
./bin/validator.sh
# Or run the local validator with the reset option
./bin/validator.sh -r5
# Start Bonfire
./bin/run-bonfire.sh6
# Start a node with default CPU configuration
./bin/run-node.sh
# For Linux systems with CUDA support
./bin/run-node.sh -F cudaTroubleshooting
Last updated