tomatolog / galera

Synchronous multi-master replication library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codership Oy
http://www.codership.com
<info@codership.com>

This is Galera replication - Codership's implementation of the write set
replication (wsrep) interface (https://github.com/codership/wsrep-API).
The software and other files in this directory unless otherwise noted
are distributed under GPLv2, see COPYING for details.


BUILDING - general

Build Requirements:
* Scons build system http://www.scons.org/
* Check unit test library http://check.sourceforge.net/
* Boost devel package http://www.boost.org/
* OpenSSL devel package

Optional:
* Asio C++ library devel package (http://think-async.com/)

To compile, in Galera root directory do either:
 $ scons
(default optimized build)
or
 $ ./scripts/build.sh
(see ./scripts/build.sh --help for information on options)

To build MySQL/Galera demo distribution, clone
https://github.com/codership/mysql-wsrep into some directory (hereafter
<MYSQL_DIR>) and run build script from this directory (hereafter <GALERA_DIR>):

 $ cd <MYSQL_DIR>
 $ git clone --single-branch --branch 5.6 \
       https://github.com/codership/mysql-wsrep.git
 $ cd <GALERA_DIR>
 $ MYSQL_SRC=<MYSQL_DIR>/mysql-wsrep ./scripts/mysql/build.sh -b -s -o -t

After successful build, demo package can be found under scripts/mysql.

BUILDING on Ubuntu 16.04 or later

 1) apt-get install libasio-dev check scons libboost-program-options-dev \
       libboost-dev  libssl-dev

Then proceed as described above.

BUILDING on CentOS/RHEL 6 or later

 1) yum install gcc gcc-c++ scons boost-devel check-devel

Then proceed as described above.

BUILDING with CMake build system

That is quite faster then with scons.
You need cmake min v >= 3.12. Visit cmake.org to achieve one; usual binary tarball
should be enough (you even don't need to install it globally).
If you're going just to compile galera-smm and garbd it is enough to have:
on Debian: libssl-dev, libboost-system-dev, libboost-program-options-dev
on Redhat: openssl-devel boost-devel
If you want full installation with tests you also need check (check-devel) and may be
subunit (libsubunit-dev). For testing you have to build with -DGALERA_TESTING=1,
to run tests invoke ctest.

For more information, see:
* Codership mailing list: http://groups.google.com/group/codership-team
* http://galeracluster.com/
* Codership home page: http://www.codership.com

About

Synchronous multi-master replication library

License:GNU General Public License v2.0


Languages

Language:C++ 87.3%Language:Shell 6.0%Language:C 5.2%Language:Python 0.9%Language:CMake 0.5%Language:Perl 0.1%Language:M4 0.1%Language:Makefile 0.0%Language:Assembly 0.0%