Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Build a binary tarball from a source tarball

RIch Prohaska edited this page May 25, 2014 · 6 revisions

Build a binary tarball from a source tarball

Download the source tarball

wget https://s3.amazonaws.com/tokudb-7.1.6/mysql-5.5.37-tokudb-7.1.6.tar.gz.md5
wget https://s3.amazonaws.com/tokudb-7.1.6/mysql-5.5.37-tokudb-7.1.6.tar.gz
wget https://s3.amazonaws.com/tokudb-7.1.6/mariadb-5.5.37-tokudb-7.1.6.tar.gz.md5
wget https://s3.amazonaws.com/tokudb-7.1.6/mariadb-5.5.37-tokudb-7.1.6.tar.gz

Check the md5 checksums

md5sum --check mysql-5.5.37-tokudb-7.1.6.tar.gz.md5
md5sum --check mariadb-5.5.37-tokudb-7.1.6.tar.gz.md5

Configure a release build

tar xzf mysql-5.5.37-tokudb-7.1.6.tar.gz
mkdir mysql-5.5.37-tokudb-7.1.6-build-release
cd mysql-5.5.37-tokudb-7.1.6-build-release

cmake -D BUILD_CONFIG=mysql_release -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_TOKUDB_REVISION=0 -D BUILD_TESTING=OFF -D USE_VALGRIND=OFF -D TOKU_DEBUG_PARANOID=OFF ../mysql-5.5.37-tokudb-7.1.6

Configure a debug build

tar xzf mysql-5.5.37-tokudb-7.1.6.tar.gz
mkdir mysql-5.5.37-tokudb-7.1.6-build-debug
cd mysql-5.5.37-tokudb-7.1.6-build-debug

cmake -D BUILD_CONFIG=mysql_release -D CMAKE_BUILD_TYPE=Debug -D CMAKE_TOKUDB_REVISION=0 -D BUILD_TESTING=OFF -D USE_VALGRIND=ON -D TOKU_DEBUG_PARANOID=ON ../mysql-5.5.37-tokudb-7.1.6

Make

make -j4 package
Clone this wiki locally