building-from-source: minor fixes
[lttng-docs.git] / contents / installing-lttng / building-from-source.md
... / ...
CommitLineData
1---
2id: building-from-source
3---
4
5As [previously stated](#doc-installing-lttng), LTTng is shipped as
6three packages: LTTng-tools, LTTng-modules and LTTng-UST. LTTng-tools
7contains everything needed to control tracing sessions, while
8LTTng-modules is only needed for Linux kernel tracing and LTTng-UST is
9only needed for user space tracing.
10
11The tarballs are available in the
12<a href="http://lttng.org/download#build-from-source" class="ext">Download
13section</a> of the LTTng website.
14
15Please refer to the `README.md` files provided by each package to
16properly build and install them.
17
18<div class="tip">
19<p>
20<span class="t">Tip:</span>The aforementioned <code>README.md</code> files
21are rendered as rich text when
22<a href="https://github.com/lttng" class="ext">viewed on GitHub</a>.
23</p>
24</div>
25
26If you're using Ubuntu, executing the following Bash script
27installs the appropriate dependencies, clones the LTTng
28Git repositories, builds the projects, and installs them. The sources
29are cloned into `~/src`. Your user needs to be a sudoer for the install
30steps to be completed.
31
32~~~ text
33#!/bin/bash
34
35mkdir ~/src
36cd ~/src
37sudo apt-get update
38sudo apt-get -y install build-essential libtool flex bison \
39 libpopt-dev uuid-dev libglib2.0-dev autoconf \
40 git libxml2-dev
41git clone git://git.lttng.org/lttng-ust.git
42git clone git://git.lttng.org/lttng-modules.git
43git clone git://git.lttng.org/lttng-tools.git
44git clone git://git.lttng.org/userspace-rcu.git
45git clone git://git.efficios.com/babeltrace.git
46
47cd userspace-rcu
48./bootstrap && ./configure && make -j 4 && sudo make install
49sudo ldconfig
50
51cd ../lttng-ust
52./bootstrap && ./configure && make -j 4 && sudo make install
53sudo ldconfig
54
55cd ../lttng-modules
56make && sudo make modules_install
57sudo depmod -a
58
59cd ../lttng-tools
60./bootstrap && ./configure && make -j 4 && sudo make install
61sudo ldconfig
62sudo cp extras/lttng-bash_completion /etc/bash_completion.d/lttng
63
64cd ../babeltrace
65./bootstrap && ./configure && make -j 4 && sudo make install
66sudo ldconfig
67~~~
This page took 0.024175 seconds and 4 git commands to generate.