Before start, run:
mkdir -p /opt/resources
cd /opt/resourcesClone the BDR source, using the latest branch:
git clone -b 'bdr-pg/REL9_4_6-1' git://git.postgresql.org/git/2ndquadrant_bdr.git postgresql-bdrAcesss the new directory and change to the new branch:
git checkout 'bdr-pg/REL9_4_6-1'Run de ./configure script and install:
./configure --with-libraries=/usr/local/lib --with-includes=/usr/local/include --enable-thread-safety --disable-debug --without-pam --with-openssl --without-gssapi --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/ --build=amd64-portbld-freebsd10.2 build_alias=amd64-portbld-freebsd10.2 CC=cc CFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" LDFLAGS=" -L/usr/local/lib -lpthread -Wl,-rpath,/usr/local/lib -fstack-protector" CPP=cpp
gmake -j 4 install
cd contrib
gmake -j 4 installBefore start, run:
cd /opt/resourcesClone BDR git repository, using de latest plugin branch:
git clone -b 'bdr-plugin/0.9.3-2' git://git.postgresql.org/git/2ndquadrant_bdr.git bdr-pluginAcesss the new directory and change to the new branch:
cd bdr-plugin
git checkout 'bdr-plugin/0.9.3-2'Run the ./configure script and install:
./configure
gmake installTested on FreeBSD 10.2.
i made a github account just to say this article was super useful to me. thankyou.