2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
1 |
Installing From Source
|
2 |
======================
|
|
3 |
||
1994.4.107
by Marisa Plumb
fixes for the installing from source doc |
4 |
* :ref:`dependencies` |
5 |
* :ref:`ubuntu-install` |
|
6 |
* :ref:`debian-install` |
|
7 |
* :ref:`obtain-source` |
|
8 |
* :ref:`compile-source` |
|
9 |
||
10 |
.. _dependencies: |
|
11 |
||
2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
12 |
Dependencies
|
13 |
------------
|
|
14 |
||
15 |
Minimal Requirements
|
|
16 |
^^^^^^^^^^^^^^^^^^^^
|
|
2222.2.1
by Mark Atwood
documentation work |
17 |
To compile Drizzle with the most basic set of plugins, you will need to have the following |
1994.4.107
by Marisa Plumb
fixes for the installing from source doc |
18 |
dependencies installed. Scroll down for the apt-get install commands for Ubuntu and Debian. |
2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
19 |
|
20 |
* autoconf
|
|
21 |
* automake
|
|
22 |
* bison
|
|
23 |
* flex
|
|
24 |
* gettext
|
|
25 |
* gperf
|
|
26 |
* intltool
|
|
27 |
* libboost-date-time-dev
|
|
28 |
* libboost-dev
|
|
29 |
* libboost-filesystem-dev
|
|
30 |
* libboost-iostreams-dev
|
|
31 |
* libboost-program-options-dev
|
|
32 |
* libboost-regex-dev
|
|
2097.2.8
by Andrew Hutchings
And add boost::test to the doc |
33 |
* libboost-test-dev
|
2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
34 |
* libboost-thread-dev
|
35 |
* libpcre3-dev
|
|
36 |
* libreadline5-dev | libreadline-dev
|
|
37 |
* libtool
|
|
38 |
* protobuf-compiler
|
|
39 |
* python-sphinx
|
|
40 |
* uuid-dev
|
|
41 |
* zlib1g-dev (>= 1:1.1.3-5)
|
|
42 |
||
43 |
Full Dependencies
|
|
44 |
^^^^^^^^^^^^^^^^^
|
|
45 |
Additionally, if you wish to build all of the plugins, you will need to install |
|
2222.2.1
by Mark Atwood
documentation work |
46 |
these additional dependencies: |
2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
47 |
|
48 |
* libcurl4-gnutls-dev
|
|
49 |
* libgcrypt11-dev
|
|
50 |
* libgearman-dev (>= 0.10)
|
|
51 |
* libhaildb-dev (>= 2.3.1)
|
|
52 |
* libmemcached-dev (>= 0.39)
|
|
53 |
* libpam0g-dev
|
|
54 |
* libprotobuf-dev (>= 2.1.0)
|
|
55 |
* libtokyocabinet-dev (>= 1.4.23)
|
|
56 |
* systemtap-sdt-dev
|
|
57 |
* libnotifymm-dev
|
|
58 |
* doxygen
|
|
59 |
* pandora-build
|
|
60 |
||
1994.4.107
by Marisa Plumb
fixes for the installing from source doc |
61 |
.. _ubuntu-install: |
62 |
||
63 |
Ubuntu Install Commands
|
|
64 |
-------------------------
|
|
65 |
||
66 |
The following commands work on Ubuntu to install the tools and libraries needed to build Drizzle: |
|
67 |
||
68 |
.. code-block:: bash |
|
69 |
||
70 |
sudo apt-get install python-software-properties |
|
71 |
sudo add-apt-repository ppa:drizzle-developers/ppa |
|
72 |
sudo apt-get update |
|
73 |
sudo apt-get install drizzle-dev |
|
74 |
||
75 |
.. _debian-install: |
|
76 |
||
77 |
Debian Install Commands
|
|
78 |
-------------------------
|
|
79 |
||
80 |
Since apt-repository isn't in Debian, you can instead add the Maverick PPA to /etc/apt/sources.list as follows: |
|
81 |
||
82 |
Add the following lines to /etc/apt/sources.list (make sure it's two |
|
83 |
lines): ::
|
|
84 |
||
85 |
deb http://ppa.launchpad.net/drizzle-developers/ppa/ubuntu maverick main
|
|
86 |
deb-src http://ppa.launchpad.net/drizzle-developers/ppa/ubuntu maverick main
|
|
87 |
||
88 |
Add the signing key to your keyring: ::
|
|
89 |
||
90 |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 06899068
|
|
91 |
||
92 |
Then run: |
|
93 |
||
94 |
.. code-block:: bash |
|
95 |
||
96 |
apt-get update; apt-get install drizzle-dev
|
|
97 |
||
98 |
Note that these instructions are only for Debian Squeeze. For current |
|
99 |
unstable/testing (aka Wheezy), the recommended source for Drizzle is the |
|
100 |
main repository. In other words: |
|
101 |
||
102 |
.. code-block:: bash |
|
103 |
||
104 |
apt-get install drizzle-dev |
|
105 |
||
106 |
or (if you want to install and not build drizzle): |
|
107 |
||
108 |
.. code-block:: bash |
|
109 |
||
110 |
apt-get install drizzle |
|
111 |
||
112 |
.. _obtain-source: |
|
113 |
||
2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
114 |
Obtaining The Source
|
115 |
--------------------
|
|
116 |
The latest source release can always be found on our `LaunchPad site |
|
2227.1.4
by Monty Taylor
Merge Mark: Documentation Edits |
117 |
<https://launchpad.net/drizzle>`_. Alternatively, the bzr source from our stable
|
2165.2.5
by Andrew Hutchings
Make fixes to temporal docs |
118 |
trunk can be obtained by doing: |
119 |
||
120 |
.. code-block:: bash |
|
2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
121 |
|
122 |
bzr branch lp:drizzle |
|
123 |
||
1994.4.107
by Marisa Plumb
fixes for the installing from source doc |
124 |
.. _compile-source: |
125 |
||
2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
126 |
Compiling The Source
|
127 |
--------------------
|
|
2222.2.1
by Mark Atwood
documentation work |
128 |
Compiling is done by performing the standard automake commands from the top level directory inside the source: |
2165.2.5
by Andrew Hutchings
Make fixes to temporal docs |
129 |
|
130 |
.. code-block:: bash |
|
2099.2.2
by Andrew Hutchings
Add compiling and installing section with basic content |
131 |
|
132 |
./config/autorun.sh |
|
133 |
./configure |
|
134 |
make |
|
135 |
make install |
|
136 |