Install OBD

2023-06-25 03:39:48  Updated

You can install OBD by using these methods:

Method 1: Install OBD by using RPM packages (only for CentOS 7 or later)

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
sudo yum install -y ob-deploy
source /etc/profile.d/obd.sh

Method 2: Install OBD by using the source code

Before you install OBD by using the source code, make sure that you have installed these dependencies:

  • gcc
  • wget
  • python-devel
  • openssl-devel
  • xz-devel
  • mysql-devel

To install OBD on Python2.7, run these commands:

sh rpm/build.sh build
source /etc/profile.d/obd.sh

To install OBD on Python3.8, perform the following steps

First, you should run these commands on Python2.7:

sh rpm/build.sh executer

Then run these commands on Python 3.8.

sh rpm/build.sh build_obd
source /etc/profile.d/obd.sh
Contact Us