~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/installing/from_source.rst

  • Committer: Monty Taylor
  • Date: 2011-01-26 19:15:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2126.
  • Revision ID: mordred@inaugust.com-20110126191555-nq5nnzyscvngsip2
Turns on -fvisibility=hidden by default. Symbols intended to be used by
plugins need to be marked with DRIZZLED_API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Installing From Source
2
2
======================
3
3
 
4
 
* :ref:`dependencies`
5
 
* :ref:`ubuntu-install`
6
 
* :ref:`debian-install`
7
 
* :ref:`obtain-source`
8
 
* :ref:`compile-source`
9
 
 
10
 
.. _dependencies:
11
 
 
12
4
Dependencies
13
5
------------
14
6
 
15
7
Minimal Requirements
16
8
^^^^^^^^^^^^^^^^^^^^
17
 
To compile Drizzle with the most basic set of plugins, you will need to have the following
18
 
dependencies installed. Scroll down for the apt-get install commands for Ubuntu and Debian.
 
9
To compile Drizzle with the most basic set of pluginsyou will need to following
 
10
dependencies installed:
19
11
 
20
12
 * autoconf
21
13
 * automake
43
35
Full Dependencies
44
36
^^^^^^^^^^^^^^^^^
45
37
Additionally, if you wish to build all of the plugins, you will need to install
46
 
these additional dependencies:
 
38
these too:
47
39
 
48
40
 * libcurl4-gnutls-dev
49
41
 * libgcrypt11-dev
58
50
 * doxygen
59
51
 * pandora-build
60
52
 
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
 
 
114
53
Obtaining The Source
115
54
--------------------
116
55
The latest source release can always be found on our `LaunchPad site
117
 
<https://launchpad.net/drizzle>`_. Alternatively, the bzr source from our stable
118
 
trunk can be obtained by doing:
119
 
 
120
 
.. code-block:: bash
 
56
<https://launchpad.net/drizzle>`_, alternatively the bzr source from our stable
 
57
trunk can be obtained by doing::
121
58
 
122
59
   bzr branch lp:drizzle
123
60
 
124
 
.. _compile-source:
125
 
 
126
61
Compiling The Source
127
62
--------------------
128
 
Compiling is done by performing the standard automake commands from the top level directory inside the source:
129
 
 
130
 
.. code-block:: bash
 
63
Compiling is as simple as doing the following inside the source::
131
64
 
132
65
   ./config/autorun.sh
133
66
   ./configure