How to install csync2 in different Gluu CE containers#
Attention
The official support end-of-life (EOL) date for Gluu Server 2.4.4 is December 31, 2018. Starting January 1, 2019, no further security updates or bug-fixes will be provided for Gluu Server 2.X. We strongly recommend upgrading to the newest version.
CentOS 6.x#
-
Log into Gluu-Server container
-
Install epel-release-latest by running
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
-
Install
csync2
package by runningyum install csync2
CentOS 7.x#
On the moment of writing csync2 can't be found in public repositories. The only option is to compile from sources.
-
Log into Gluu-Server container
-
Enable epel-release repo:
# yum install epel-release
-
Install compiler and development environment:
# yum groupinstall "Development Tools"
-
Install csync2's dependencies:
-
# yum install librsync-devel
-
# yum install gnutls-devel
-
# yum install sqlite-devel
-
-
# mkdir building_csync && cd building_csync/
-
Download the latest version of the tool from here:
# wget http://oss.linbit.com/csync2/csync2-2.0.tar.gz
-
Unpack:
# tar -xz -f ./csync2-2.0.tar.gz && cd csync2-2.0/
-
Build & install, while directing it to use
/usr/local/etc/csync2/
directory for storing configuration (for convenience):# ./configure --sysconfdir /usr/local/etc/csync2/ && make && make install
. Don't forget to update paths to csync's binaries and configuration files later on, as they are different from the ones used in examples in the main article!
Ubuntu 14.x (compiling from sources)#
-
Log into Gluu-Server container
-
Run
apt-get update
-
Install csync2's dependencies:
-
# apt-get install pkg-config
-
# apt-get install libsqlite-dev
-
# apt-get install libsqlite3-dev
-
# apt-get install librsync-dev
-
-
Download the latest version of the tool from here:
# wget http://oss.linbit.com/csync2/csync2-2.0.tar.gz
-
Unpack:
# tar -xz -f ./csync2-2.0.tar.gz && cd csync2-2.0/
-
Build & install, while directing it to use
/etc/csync2/
directory for storing configuration and/usr/sbin
directory for executables (for convenience):./configure --sysconfdir /etc/csync2/ --prefix /usr/ && make && make install
Ubuntu 14.x (from repo)#
-
Log into Gluu-Server container
-
Run
apt-get update
-
Run
apt-get install csync2