Install toolchain

To build OceanBase 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 operator systems. Not all the operator systems are supported; especially, Windows and Mac OS X are not supported yet.

Below is the OS compatibility list:

OSVersionArchCompilablePackage DeployableCompiled Binary DeployableMYSQLTEST Passed
Alibaba Cloud Linux2.1903x86_64YesYesYesYes
CentOS7.2 / 8.3x86_64YesYesYesYes
Debian9.8 / 10.9x86_84YesYesYesYes
Fedora33x86_84YesYesYesYes
openSUSE15.2x86_84YesYesYesYes
OpenAnolis8.2x86_84YesYesYesYes
StreamOS3.4.8x86_84UnknownYesYesUnknown
SUSE15.2x86_84YesYesYesYes
Ubuntu16.04 / 18.04 / 20.04x86_84YesYesYesYes

Note:

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

Supported GLIBC

OceanBase and its dependencies dynamically link to The GNU C Library (GLIBC). And the version of GLIBC share library is restrict to be less than or equal to 2.34.

See ISSUE-1337 for more details.

Installation

The installation instructions vary among the operator 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

Debian based

This includes Debian, Ubuntu, etc.

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

SUSE based

This includes SUSE, openSUSE, etc.

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