2 id: building-from-source
5 As [previously stated](#doc-installing-lttng), LTTng is shipped as
6 three packages: LTTng-tools, LTTng-modules and LTTng-UST. LTTng-tools
7 contains everything needed to control tracing sessions, while
8 LTTng-modules is only needed for Linux kernel tracing and LTTng-UST is
9 only needed for user space tracing.
11 The tarballs are available in the
12 <a href="http://lttng.org/download#build-from-source" class="ext">Download
13 section</a> of the LTTng website.
15 Please refer to the `README.md` files provided by each package to
16 properly build and install them.
20 <span class="t">Tip:</span>The aforementioned <code>README.md</code> files
21 are rendered as rich text when
22 <a href="https://github.com/lttng" class="ext">viewed on GitHub</a>.
26 If you're using Ubuntu, executing the following Bash script
27 will install the appropriate dependencies, clone the LTTng
28 Git repositories, build the projects, and install them. The sources will
29 be cloned into `~/src`. Your user needs to be a sudoer for the install
30 steps to be completed.
38 sudo apt-get -y install build-essential libtool flex bison \
39 libpopt-dev uuid-dev libglib2.0-dev autoconf \
41 git clone git://git.lttng.org/lttng-ust.git
42 git clone git://git.lttng.org/lttng-modules.git
43 git clone git://git.lttng.org/lttng-tools.git
44 git clone git://git.lttng.org/userspace-rcu.git
45 git clone git://git.efficios.com/babeltrace.git
48 ./bootstrap && ./configure && make -j 4 && sudo make install
52 ./bootstrap && ./configure && make -j 4 && sudo make install
56 make && sudo make modules_install
60 ./bootstrap && ./configure && make -j 4 && sudo make install
62 sudo cp extras/lttng-bash_completion /etc/bash_completion.d/lttng
65 ./bootstrap && ./configure && make -j 4 && sudo make install