Created
February 24, 2016 11:34
-
-
Save arturmartins/90f390611c266d7aa96f to your computer and use it in GitHub Desktop.
Install bucardo 5.4.1 in ubuntu 12.04 / 14.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on the instructions in | |
# https://bucardo.org/wiki/Bucardo/Installation | |
# -------- configuration: Variables | |
BUCARDO_VERSION='5.4.1' | |
DOWNLOAD_URL="http://bucardo.org/downloads/Bucardo-${BUCARDO_VERSION}.tar.gz" | |
# ------------------------------- | |
TEMP_FILE="/tmp/${RANDOM}.tar.gz" | |
USR_LOCAL_DIR="/usr/local/" | |
# Install DBIx::Safe | |
sudo aptitude install libdbix-safe-perl | |
# Install Per prerequisites (boolean, DBI::Pg, Test::Simple) | |
sudo aptitude install libboolean-perl libdbd-pg-perl libtest-simple-perl | |
# Download and unpack the Bucardo tarball | |
wget –quiet {DOWNLOAD_URL} –output-document ${TEMP_FILE} | |
tar xvfz ${TEMP_FILE} --directory ${USR_LOCAL_DIR} | |
# Install the Bucardo software | |
cd ${USR_LOCAL_DIR}/Bucardo-${BUCARDO_VERSION} | |
perl Makefile.PL | |
make | |
sudo make install | |
# delete temporary file | |
rm ${TEMP_FILE} | |
# For the next steps, you are on your own. | |
# Depending on the database you have, you need to manually install | |
# postgresql-plperl-x.x to the correspondent version postgresql-x.x. | |
# sudo aptitude install postgresql-plperl-x.x | |
# create dir | |
# sudo mkdir /var/run/bucardo | |
# create bucardo user | |
sudo adduser bucardo | |
# Become postgres | |
# su - postgres | |
# install Bucardo (be sure that you have the necessary permissions in pg_hba.conf) | |
# bucardo install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment