From cace9dbed5cc699b39dfee1dadb18efdab98432b Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 13 Apr 2015 13:10:39 -0400 Subject: [PATCH] building-from-source: add dev script for Ubuntu Signed-off-by: Philippe Proulx --- .../installing-lttng/building-from-source.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/contents/installing-lttng/building-from-source.md b/contents/installing-lttng/building-from-source.md index b5d3c9e..79f294f 100644 --- a/contents/installing-lttng/building-from-source.md +++ b/contents/installing-lttng/building-from-source.md @@ -22,3 +22,46 @@ are rendered as rich text when viewed on GitHub.

+ +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 +~~~ -- 2.34.1