Source code compilation

Docker image

The easiest way to compile source code is to use docker script from github:

#> git clone
#> bash

Required packages

To compile the code on CentOS 7 system you need to have the following packages installed: make, gcc, gcc-c++, git, unzip, libasan, libaio-devel, libnsl, tar, autoconf, automake, libtool

Before starting the compilation update your system and make sure they are installed:

#> yum -y update
#> yum -y install make gcc gcc-c++ git unzip libasan libaio-devel libnsl autoconf automake libtool

Required library: rapidjson

This is the only required additional library. Download library to /opt/rapidjson. The library does not require compilation.

#> cd /opt
#> git clone

Optional libraries: librdfkafka

If you want to be able to send transactions directly to Kafka you need librdkafka library. Download library and compile to /opt/librdkafka :

#> mkdir /opt/librdkafka-src
#> cd /opt/librdkafka-src
#> git clone
#> cd librdkafka
#> ./configure --prefix=/opt/librdkafka
#> make
#> make install

Optional library: Oracle client

If you want to be able to run online, asm or standby mode you need to be able to connect to the Oracle instance. You need an Oracle client downloaded from Oracle. You need 2 files:


In this example the Oracle library is uncompressed to /opt/instantclient_19_10. Please mind that zip files do not contain symlinks and you need to create them yourself:

#> cd /opt
#> unzip /tmp/
#> unzip /tmp/
#> cd /opt/instantclient_19_10
#> ln -s

Download and compile OpenLogReplicator

Download program to /opt/OpenLogReplicator:

#> cd /opt
#> git clone

Provide paths to libraries and run code compilation:

#> autoreconf -f -i
#> ./configure CXXFLAGS='-O3' --with-rapidjson=/opt/rapidjson --with-rdkafka=/opt/librdkafka --with-instantclient=/opt/instantclient_19_10
#> make

Check if the program is running correctly:

#> export LANG=en_US.UTF-8
#> export LD_LIBRARY_PATH=/opt/instantclient_19_10:/opt/librdkafka/lib

You should see a result like:

OpenLogReplicator v.0.8.9 (C) 2018-2021 by Adam Leszczynski (, see LICENSE file for licensing information
ERROR: file OpenLogReplicator.json is missing

This means that the code is properly compiled, libraries are correctly mapped and ready to run,


If running OpenLogReplicator gives you a result like:

#> ./OpenLogReplicator 
./OpenLogReplicator: error while loading shared libraries: cannot open shared object file: No such file or directory

This means that the libraries are not correctly linked. Please check which libraries are missing, example:

#> ldd OpenLogReplicator =>  (0x00007fff75ddd000) => /lib64/ (0x00007f45c27df000) => not found => not found => not found => not found => not found => /lib64/ (0x00007f45c25c3000) => /lib64/ (0x00007f45c22bc000) => /lib64/ (0x00007f45c1fba000) => /lib64/ (0x00007f45c1da4000) => /lib64/ (0x00007f45c19d6000) => /lib64/ (0x00007f45c17d2000)
	/lib64/ (0x00007f45c576f000)

In the above example all libraries marked with “not found” are missing. Please check that the environment variable LD_LIBRARY_PATH includes paths where the required files are located. If necessary – create appropriate symlinks.