Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

How to build

BohuTANG edited this page Jul 28, 2020 · 15 revisions

Summary

Build is same as Percona Server 5.7, the details please refer to:
https://www.percona.com/doc/percona-server/5.7/installation.html

Compiling

sudo apt-get install -y git scons gcc g++ openssl check cmake bison \
libboost-all-dev libasio-dev libaio-dev libncurses5-dev libreadline-dev \
libpam-dev socat libcurl4-openssl-dev pkg-config
git clone https://github.com/xelabs/tokudb
cd  tokudb
git submodule update --init

The lazy way:

cd xelabs
bash build.sh

or

mkdir build
cd build
cmake ..\
  -DCMAKE_BUILD_TYPE=RelWithDebInfo\
  -DBUILD_CONFIG=mysql_release\
  -DFEATURE_SET=community\
  -DWITH_EMBEDDED_SERVER=OFF\
  -DTOKUDB_VERSION=7.5.6\
  -DBUILD_TESTING=OFF\
  -DWITHOUT_ROCKSDB=ON\
  -DWITH_BOOST=../extra/boost/boost_1_59_0.tar.gz\
  -DCOMPILATION_COMMENT="XeLabs TokuDB build $(date +%Y%m%d.%H%M%S.$(git rev-parse --short HEAD))"\
  -DCMAKE_INSTALL_PREFIX=<your-install-dir>
make -j8

Compiling for debugging

mkdir build
cd build
cmake ..\
  -DCMAKE_BUILD_TYPE=Debug\
  -DBUILD_CONFIG=mysql_release\
  -DFEATURE_SET=community\
  -DWITH_EMBEDDED_SERVER=OFF\
  -DTOKUDB_VERSION=7.5.6\
  -DBUILD_TESTING=OFF\
  -DWITHOUT_ROCKSDB=ON\
  -DWITH_BOOST=../extra/boost/boost_1_59_0.tar.gz\
  -DCMAKE_INSTALL_PREFIX=<your-install-dir>

Installation

make install

Install Database

$./bin/mysqld --defaults-file=[your-my-cnf] --initialize-insecure
$ mysql -uroot -h127.0.0.1
Clone this wiki locally