~drizzle-trunk/drizzle/development

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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
Installing Drizzle from Source
==============================

* :ref:`obtain-source`
* :ref:`compile-source`
* :ref:`dependencies`
* :ref:`ubuntu-install`
* :ref:`debian-install`
* :ref:`redhat-install`

.. _obtain-source:

Obtaining the Source
--------------------
The latest source release can always be found on our `LaunchPad site
<https://launchpad.net/drizzle>`_. Alternatively, the bzr source from our stable
trunk can be obtained by doing:

.. code-block:: bash

   bzr branch lp:drizzle

.. _compile-source:

Compiling the Source
--------------------
Compiling is done by performing the standard automake commands from the top level directory inside the source:

.. code-block:: bash

   ./config/autorun.sh
   ./configure
   make
   make install


.. _dependencies:

Dependencies
------------

Minimal Requirements
^^^^^^^^^^^^^^^^^^^^
To compile Drizzle with the most basic set of plugins, you will need to have the following
dependencies installed. Scroll down for the apt-get install commands for Ubuntu and Debian.

 * autoconf
 * automake
 * bison
 * flex
 * gettext
 * gperf
 * intltool
 * libboost-date-time-dev
 * libboost-dev
 * libboost-filesystem-dev
 * libboost-iostreams-dev
 * libboost-program-options-dev
 * libboost-regex-dev
 * libboost-test-dev
 * libboost-thread-dev
 * libpcre3-dev
 * libreadline5-dev | libreadline-dev
 * libtool
 * protobuf-compiler
 * python-sphinx
 * uuid-dev
 * zlib1g-dev (>= 1:1.1.3-5)

Full Dependencies
^^^^^^^^^^^^^^^^^
Additionally, if you wish to build all of the plugins, you will need to install
these additional dependencies:

 * libcurl4-gnutls-dev
 * libgcrypt11-dev
 * libgearman-dev (>= 0.10)
 * libhaildb-dev (>= 2.3.1)
 * libmemcached-dev (>= 0.39)
 * libpam0g-dev
 * libprotobuf-dev (>= 2.1.0)
 * libtokyocabinet-dev (>= 1.4.23)
 * libv8-dev
 * systemtap-sdt-dev
 * libnotifymm-dev
 * doxygen
 * pandora-build

.. _ubuntu-install:

Installing Build Dependencies on Ubuntu
---------------------------------------

The following commands work on Ubuntu to install the tools and libraries needed to build Drizzle:

.. code-block:: bash

  sudo apt-get install python-software-properties
  sudo add-apt-repository ppa:drizzle-developers/ppa
  sudo apt-get update
  sudo apt-get install drizzle-dev

.. _debian-install:

Installing Build Dependencies on Debian
---------------------------------------

Since apt-repository isn't in Debian, you can instead add the Maverick PPA to /etc/apt/sources.list as follows:

Add the following lines to /etc/apt/sources.list (make sure it's two
lines): ::

	deb http://ppa.launchpad.net/drizzle-developers/ppa/ubuntu maverick main
	deb-src http://ppa.launchpad.net/drizzle-developers/ppa/ubuntu maverick main

Add the signing key to your keyring: ::

	sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 06899068

Then run:

.. code-block:: bash

  apt-get update; apt-get install drizzle-dev

Note that these instructions are only for Debian Squeeze. For current
unstable/testing (aka Wheezy), the recommended source for Drizzle is the
main repository. In other words:

.. code-block:: bash

  apt-get install drizzle-dev

or (if you want to install and not build drizzle):

.. code-block:: bash

  apt-get install drizzle 

.. _redhat-install:

Installing Build Dependencies on Red Hat or Fedora
--------------------------------------------------

Depending on whether you use Red Hat (RHEL) or Fedora, you should add the
repositories as explained in :doc:`redhat`.

After that, install the following packages:

 * bzr
 * boost-devel
 * autoconf
 * automake
 * gcc
 * gcc-c++
 * libtool
 * gperf
 * libuuid-devel (part of e2fsprogs-devel on older RedHat based distributions)
 * zlib-devel
 * pcre-devel
 * readline-devel
 * flex
 * bison

Note that you should be able to install all of the above simply with

.. code-block:: bash

  yum-builddep drizzle