Install toolchain

May 26, 2026 ยท View on GitHub

To build OceanBase seekdb from source code, you need to install the C++ toolchain in your development environment first. If the C++ toolchain is not installed yet, you can follow the instructions in this document for installation.

Supported OS

OceanBase makes strong assumption on the underlying operating systems. Not all the operating systems are supported.

Below is the OS compatibility list:

Linux

OSVersionArchCompilablePackage DeployableCompiled Binary DeployableMYSQLTEST Passed
Alibaba Cloud Linux3x86_64 / aarch64YesYesYesYes
CentOS7 / 8 / 9x86_64 / aarch64YesYesYesYes
Debian11 / 12 / 13x86_84 / aarch64YesYesYesYes
Fedora33x86_84 / aarch64YesYesYesYes
KylinV10x86_84 / aarch64YesYesYesYes
openSUSE15.2x86_84 / aarch64YesYesYesYes
OpenAnolis8 / 23x86_84 / aarch64YesYesYesYes
OpenEuler22.03 / 24.03x86_84 / aarch64YesYesYesYes
Rocky Linux8 / 9x86_84 / aarch64YesYesYesYes
StreamOS3.4.8x86_84 / aarch64UnknownYesYesUnknown
SUSE15.2x86_84 / aarch64YesYesYesYes
Ubuntu20.04 / 22.04 / 24.04x86_84 / aarch64YesYesYesYes
UOS20x86_84 / aarch64YesYesYesYes

macOS

OSVersionArchitectureSupported
macOS13+Apple Silicon (M-series)Yes

Note:

  • macOS support is limited to macOS 13 (Ventura) or later with Apple Silicon (M1/M2/M3/M4) chips only. Intel-based Macs are not supported.

Windows

OSVersionArchitectureSupported
Windows11x64Yes

Note:

  • The compiler, build tools, and third-party libraries are downloaded into deps/3rd automatically by build.ps1 init; no manual installation is needed.
  • You still need to install Python 3.x and Visual Studio 2022 Build Tools yourself (see the installation steps below).

Note:

Other Linux distributions may work. If you verify that OceanBase seekdb can compile and deploy on a distribution except ones listed above, feel free to submit a pull request to add it.

Installation

The installation instructions vary among the operating systems and package managers you develop with. Below are the instructions for some popular environments:

Fedora based

This includes CentOS, Fedora, OpenAnolis, RedHat, UOS, etc.

yum install git wget rpm* cpio make glibc-devel glibc-headers binutils m4 libtool libaio python3

Debian based

This includes Debian, Ubuntu, etc.

apt-get install git wget rpm rpm2cpio cpio make build-essential binutils m4 file python3

Note: If you are using Ubuntu 24.04 or later, or Debian 13 or later, you also need to install libaio1t64:

apt-get install libaio1t64

SUSE based

This includes SUSE, openSUSE, etc.

zypper install git wget rpm cpio make glibc-devel binutils m4 python3

macOS (Apple Silicon)

Note: Only macOS 13+ with M-series chips (M1/M2/M3/M4) is supported.

brew install git cmake pkg-config openssl@3 ncurses googletest
brew install zstd lz4 utf8proc thrift re2 brotli

Tip: If Homebrew downloads are slow, see Homebrew Optimization for mirror configuration.

Windows

Applies to: Windows 11 x64.

Required:

  • Python 3.x: download the installer from python.org and tick "Add Python to PATH" during install.
  • Visual Studio 2022 Build Tools: download from the Visual Studio downloads page and select the "Desktop development with C++" workload. The workload installs the Windows 11 SDK, which provides windows.h, system import libraries, and signtool.exe โ€” all required for Clang/LLD to produce native Windows binaries.

Optional (only needed for packaging):

  • .NET 8 SDK: required to build the seekdb Configurator setup wizard (WPF). The package step skips the wizard if it is missing.
  • WiX v4: required to generate the MSI installer; falls back to a ZIP package when missing.
    dotnet tool install --global wix
    

Auto-downloaded (no manual install needed):

CMake, Ninja, LLVM 18, win_flex_bison, OpenSSL, and all third-party libraries are downloaded into deps/3rd when you run:

.\build.ps1 init