This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
/
INSTALL
124 lines (77 loc) · 3.01 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
124
= SkyTools - tools for PostgreSQL =
== Building ==
Skytools modules use some other code to run, so you need to install the
following dependencies on the system where you want to build and run
skytools based applications.
=== Build dependencies ===
postgresql libpq-dev postgresql-server-dev
python python-dev
When building code from GIT:
git autoconf automake asciidoc xmlto libtool
=== Runtime dependencies ===
python psycopg2 rsync
== Building from source tarball ==
$ ./configure --prefix=...
$ make
$ make install
== Building from GIT ==
Fetch git tree:
$ git clone git://github.com/markokr/skytools.git
Fetch libusual submodule:
$ git submodule init
$ git submodule update
Generate ./configure script:
$ ./autogen.sh
Now build as usual:
$ ./configure --prefix=...
$ make
== Building a debian package ==
The main Makefile provides a target for building a +.deb+ package
suitable for installation. The following additional packages are needed
to build the debian package:
devscripts autotools-dev python-all-dev python-support xmlto asciidoc
libevent-dev libpq-dev postgresql-server-dev-all
Then build:
$ make deb
== 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.
== Building without Makefile ==
It is possible to build and install Python part of Skytools only.
This is useful when no required build / devel tools (dependencies)
are available (typically on Windows platform).
Commands to run vary across platforms but usually go like this:
$ [sudo] python setup_pkgloader.py install
$ [sudo] python setup_skytools.py install [--sk3-subdir]
== Documentation ==
Skytools documentation consists 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 simple 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 being 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.