building-from-source: add dev script for Ubuntu
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 13 Apr 2015 17:10:39 +0000 (13:10 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 13 Apr 2015 17:22:52 +0000 (13:22 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
contents/installing-lttng/building-from-source.md

index b5d3c9eb5bd609ba10668c69293067c160860d42..79f294feb5b70b8fce2cb34907c71d510c696498 100644 (file)
@@ -22,3 +22,46 @@ are rendered as rich text when
 <a href="https://github.com/lttng" class="ext">viewed on GitHub</a>.
 </p>
 </div>
+
+If you're using Ubuntu, executing the following Bash script
+will install the appropriate dependencies, clone the LTTng
+Git repositories, build the projects, and install them. The sources will
+be cloned into `~/src`. Your user needs to be a sudoer for the install
+steps to be completed.
+
+~~~ text
+#!/bin/bash
+
+mkdir ~/src
+cd ~/src
+sudo apt-get update
+sudo apt-get -y install build-essential libtool flex bison \
+                        libpopt-dev uuid-dev libglib2.0-dev autoconf \
+                        git libxml2-dev
+git clone git://git.lttng.org/lttng-ust.git
+git clone git://git.lttng.org/lttng-modules.git
+git clone git://git.lttng.org/lttng-tools.git
+git clone git://git.lttng.org/userspace-rcu.git
+git clone git://git.efficios.com/babeltrace.git
+
+cd userspace-rcu
+./bootstrap && ./configure && make -j 4 && sudo make install
+sudo ldconfig
+
+cd ../lttng-ust
+./bootstrap && ./configure && make -j 4 && sudo make install
+sudo ldconfig
+
+cd ../lttng-modules
+make && sudo make modules_install
+sudo depmod -a
+
+cd ../lttng-tools
+./bootstrap && ./configure && make -j 4 && sudo make install
+sudo ldconfig
+sudo cp extras/lttng-bash_completion /etc/bash_completion.d/lttng
+
+cd ../babeltrace
+./bootstrap && ./configure && make -j 4 && sudo make install
+sudo ldconfig
+~~~
This page took 0.028768 seconds and 4 git commands to generate.