-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathINSTALL.src
64 lines (56 loc) · 1.89 KB
/
INSTALL.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
###########
# These instructions are for users who are comfortable compiling from source
# and who know the command line. They're intended for development and testing.
# New users should use the packages, or see the more detailed source install
# instructions in the main documentation.
#
# The following instructions are for compiling full BDR, including the patched
# PostgreSQL.
#
# Skip the section for installing PostgreSQL its self if you are installing BDR
# against PostgreSQL 9.6, where a modified PostgreSQL is not required.
############
# == get dependencies ==
#
# You'll need some extra packages before you can compile PostgreSQL and BDR.
# See the main PostgreSQL documentation for a full list. If you just want to
# try it out quickly for testing this should be sufficient:
#
# For Debian/Ubuntu:
#
# apt-get install build-essential
# apt-get build-dep postgresql
#
# Or for Fedora/RHEL:
#
# yum install yum-utils "Development Tools"
# yum-builddep postgresql
#
# == get source ==
#
# go to directory where you want to place postgres' and bdr's source code, creating it
# if needed.
$ mkdir -p ~/src/
$ cd ~/src/
# checkout the sourcecode of postgres 9.4 with bdr patches added
$ git clone -b bdr-pg/REL9_4_STABLE git://git.postgresql.org/git/2ndquadrant_bdr.git postgresql-bdr
# checkout the sourcecode of the bdr plugin
$ git clone -b bdr-plugin/next git://git.postgresql.org/git/2ndquadrant_bdr.git bdr-plugin
# == build postgres ==
$ cd postgresql-bdr
$ ./configure --enable-depend --enable-debug --enable-cassert CFLAGS="-fno-omit-frame-pointer" --prefix ~/bin/
$ make -j4 -s install-world
# == build bdr plugin ==
$ cd ../bdr-plugin
$ ./autogen.sh
$ PATH=~/bin/bin:$PATH ./configure
$ make -j4 -s install
# == to update later ==
$ cd ../postgresql-bdr
$ git pull
$ make -j4 -s install-world
$ cd ../bdr-plugin
$ git pull
$ ./autogen.sh
$ PATH=~/bin/bin:$PATH ./configure
$ make -s install