Docker image
The easiest way to compile source code is to use docker script from github:
#> git clone https://github.com/bersler/OpenLogReplicator-docker
#> bash build.sh
You need at least GCC 4.8 to compile OpenLogReplicator. Please refer to Docker images for Ubuntu or CentOS source scripts for details regarding required packages and compilation options.
Troubleshooting
If running OpenLogReplicator gives you a result like:
#> ./OpenLogReplicator
./OpenLogReplicator: error while loading shared libraries: libclntshcore.so.19.1: 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
linux-vdso.so.1 => (0x00007fff75ddd000)
libasan.so.0 => /lib64/libasan.so.0 (0x00007f45c27df000)
libclntshcore.so.19.1 => not found
libnnz19.so => not found
libclntsh.so.19.1 => not found
librdkafka++.so.1 => not found
librdkafka.so.1 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f45c25c3000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f45c22bc000)
libm.so.6 => /lib64/libm.so.6 (0x00007f45c1fba000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f45c1da4000)
libc.so.6 => /lib64/libc.so.6 (0x00007f45c19d6000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f45c17d2000)
/lib64/ld-linux-x86-64.so.2 (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.