|
rippled
|
Our build instructions assume you have a C++ development environment complete with Git, Python, Conan, CMake, and a C++ compiler. This document exists to help readers set one up on any of the Big Three platforms: Linux, macOS, or Windows.
As an alternative to system packages, the Nix development shell can be used to provide a development environment. See using nix development shell for more details.
Package ecosystems vary across Linux distributions, so there is no one set of instructions that will work for every Linux user. The instructions below are written for Debian 12 (Bookworm).
If you use different Linux distribution, hope the instruction above can guide you in the right direction. We try to maintain compatibility with all recent compiler releases, so if you use a rolling distribution like e.g. Arch or CentOS then there is a chance that everything will "just work".
Open a Terminal and enter the below command to bring up a dialog to install the command line developer tools. Once it is finished, this command should return a version greater than the minimum required (see BUILD.md).
If you develop other applications using XCode you might be consistently updating to the newest version of Apple Clang. This will likely cause issues building rippled. You may want to install a specific version of Xcode:
.xip fileInstall and Configure Xcode
The command line developer tools should include Git too:
Install Homebrew, use it to install pyenv, use it to install Python, and use it to install Conan:
Install CMake with Homebrew too:
Clang-tidy is required to run static analysis checks locally (see CONTRIBUTING.md). It is not required to build the project. Currently this project uses clang-tidy version 21.
LLVM 21 is not available in the default Debian 12 (Bookworm) repositories. Install it using the official LLVM apt installer:
Then use run-clang-tidy-21 when running clang-tidy locally.
Install LLVM 21 via Homebrew:
Then use run-clang-tidy from the LLVM 21 Homebrew prefix when running clang-tidy locally.