forked from mpihlak/skytools-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
124 lines (80 loc) · 3.1 KB
/
INSTALL
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
= SkyTools - tools for PostgreSQL =
This is a package of tools in use in Skype for replication and
failover. Also it includes a generic queuing mechanism PgQ and
utility library for Python scripts.
== Dependencies ==
Skytools modules use some other code to run, you need to install the
following dependencies on the system where you want to build and run
skytool applications.
=== Build dependencies ===
postgresql libpq-dev postgresql-server-dev
python python-dev
When building code from GIT:
git autoconf automake asciidoc xmlto
=== Runtime dependencies ===
python
psycopg2 or psycopg1
rsync
== Building from source tarball ==
$ ./configure --prefix=...
$ make
$ make install
== Building from GIT ==
## fetch git tree
$ git clone git://github.com/markokr/skytools-dev.git
## fetch libusual submodule
$ git submodule init
$ git submodule update
## generate ./configure script
$ make boot
## now build as usual (--with-asciidoc is required when building from GIT)
$ ./configure --prefix=... --with-asciidoc
$ make
== Building a debian package ==
The main Makefile provides a target for building a +.deb+ package
suitable for installation. Following additional packages are needed
to build the debian package:
devscripts yada
Then the build:
$ make deb83
You can build skytools for older PostgreSQL systems by choosing one of
+deb82+, +deb81+ or +deb80+ targets.
The build should give you two debian package files to install, such as
+skytools_2.1.5_i386.deb+ and
+skytools-modules-8.2_2.1.5_i386.deb+. See the Installation section
for notes about where to install those packages.
== Optional arguments to ./configure ==
The following configure options are available:
--prefix::
Path prefix where to install skytools files (default: /usr/local)
--with-python::
Name or full path of the Python executable to use. (default: python)
--with-pgconfig::
Name or full path to pg_config (default: pg_config)
--with-asciidoc
If asciidoc should be used to re-generate manpages. Required when
building from GIT as the generated pages are not in repo.
== Documentation ==
Skytools documentation consist of text files, some of them in the
asciidoc format, from which you can produce man and html outputs:
$ cd doc
$ make man
$ make html
You need asciidoc and xmlto packages for this to work.
== Installation ==
=== Skytools ===
You have to install skytools on the machines where you want to run it,
obviously. The installation of the skytools provides PgQ, Londiste and
walmgr.
=== Londiste ===
In the londiste case, as the replication process will run on only one
machine (either provider, subscriber or a tier box), things are not
that straight anymore.
But simple nonetheless: install PgQ on the machine where you want to
run it, provider being the straightforward choice. Then install
londiste only on the box from where you want to launch the replication
process, a good default begin the subscriber box this time.
You can then install londiste on provider from the subscriber box with
the +londiste.py+ command line tool.
== Usage ==
Please refer to the documentation.