Prerequisites
C++ toolchain
You need a C++ compiler that supports C++17. Clang 10+ and GCC 10+ both work. On macOS, the Xcode command-line tools provide Clang:
xcode-select --install
On Debian/Ubuntu:
sudo apt install build-essential
CMake
CMake 3.15 or later. Check with:
cmake --version
Conan 2
Conan 2 manages all C++ dependencies (protobuf, gflags, leveldb, brpc, etc.). Install it with Homebrew on macOS:
brew install conan
Or with pip on Linux:
pip install conan
If you have never used Conan on this machine, detect a default profile:
conan profile detect
Check the version:
conan --version # must be 2.x
Node.js (for the docs site only)
The docs site is built with Docusaurus and requires Node.js 18+ and npm:
node --version
npm --version
If you are only building the C++ code, you do not need Node.
Verify
A quick sanity check that the build tools are in place:
cmake --version && c++ --version && conan --version
If all three commands print version info, you are ready to build. Next step: Build and test.