Environment & Build Toolchain

← Back to Rippled I Overview


Introduction

Before diving into Rippled’s architecture or contributing to the codebase, it’s essential to prepare a clean and consistent development environment. Rippled is a high-performance C++ application with multiple system dependencies from compiler toolchains to build systems and scripting utilities that must be properly configured to ensure smooth compilation and runtime behavior.

This section provides a step-by-step setup guide for macOS, focusing on the tools and configurations required to compile Rippled from source. You’ll install Node.js for build tooling, configure your compiler (Clang) and Xcode environment, and prepare Python dependencies used in the build process.

By the end of this section, your environment will be fully ready to build and run Rippled locally, following the same structure used by production and continuous integration setups.


macOS

Install Node.js via nvm for easy version management:

# Install nvm (if not already installed)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

# Install and use the latest LTS version of Node.js
nvm install --lts
nvm use --lts

Prerequisites for Compiling Rippled

  • macOS with administrator rights

  • Apple account (to download certain versions of Xcode)

  • Stable internet connection for dependencies

Checking Clang Version

Installing Xcode (if needed)

  1. Download Xcode from Apple Developer Downloads

  2. Extract the .xip file and rename it (e.g., Xcode_16.2.app)

  3. Move it to /Applications and set it as the default toolchain:

  1. Verify the installation:

You should see something like this for clang: Apple clang version 16.0.0 (clang-1600.0.26.3)

Installing Build Tools

Python Configuration


Ubuntu

Prerequisites

  • Ubuntu with administrator rights

  • Stable internet connection

Installing Build Tools

Last updated