This gist provides simple steps to compile Bitcoin Core v30.0rc1 from source using CMake and perform basic testing, including following the official RC testing guide. These instructions are for Unix-like systems (e.g., Ubuntu Linux). Always verify with official docs for your OS.
Note: The latest RC is v30.0rc2, but instructions apply similarly to rc1. Use the appropriate tag. For full details, see the Bitcoin Core repository and RC Testing Guide.
Install required dependencies. On Ubuntu/Debian:
$ sudo apt update
$ sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev libsqlite3-dev libcapnp-dev
$ # Optional for GUI: libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
$ # Optional for ZMQ: libzmq3-dev
$ # Optional for UPnP: libminiupnpc-dev libnatpmp-devEnsure you have CMake installed (version 3.16+ recommended):
$ sudo apt install cmake$ git clone https://github.com/bitcoin/bitcoin.git
$ cd bitcoin
$ git checkout v30.0rc1 # Or v30.0rc2 if testing the latestCreate a build directory and compile:
$ cmake -B build # Add -DBUILD_GUI=ON for Qt GUI
$ cmake --build build # Append "-j N" for N parallel jobs
$ cmake --install build # OptionalRun the compiled binary:
$ ./build/bin/bitcoind --version # Should show Bitcoin Core version v30.0rc1
$ ./build/bin/bitcoind --signet # Start signet
$ ./build/bin/bitcoin-cli --signet getblockchaininfo # while runningFrom the build directory:
$ ctest --test-dir buildThis runs the built-in unit tests using the test framework.
Bitcoin Core includes Python-based functional tests. From the root directory:
$ test/functional/test_runner.py # Runs all functional tests. Append "-j N" for N parallel jobsAdd --extended for more tests. Specify individual tests, e.g., test/functional/test_runner.py feature_pruning.py.
For thorough testing of v30 RC1 (or rc2), follow the Testing Guide: Bitcoin Core 30.0 Release Candidate.