diff mbox series

[v3] trace-cmd: Add dependencies to BUILDING section in README

Message ID 20210823204543.1327-1-victorcora98@gmail.com (mailing list archive)
State Accepted
Commit 384dfa39ac8733561322ec5c90d697b3990ef4a7
Headers show
Series [v3] trace-cmd: Add dependencies to BUILDING section in README | expand

Commit Message

Victor Cora Colombo Aug. 23, 2021, 8:45 p.m. UTC
KernelShark has instructions in its README on how to get necessary
dependencies to build it. trace-cmd could follow this example and
also add more information on how to build it.

This patch adds instructions to README on how to get necessary libraries
and dependencies to build trace-cmd.

Signed-off-by: Victor Cora Colombo <victorcora98@gmail.com>
---
 README | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Comments

Steven Rostedt Sept. 8, 2021, 3:07 p.m. UTC | #1
On Mon, 23 Aug 2021 17:45:43 -0300
Victor Cora Colombo <victorcora98@gmail.com> wrote:

> KernelShark has instructions in its README on how to get necessary
> dependencies to build it. trace-cmd could follow this example and
> also add more information on how to build it.
> 
> This patch adds instructions to README on how to get necessary libraries
> and dependencies to build trace-cmd.
> 
> Signed-off-by: Victor Cora Colombo <victorcora98@gmail.com>

I just added this to my queue.

Thanks Victor!

-- Steve
diff mbox series

Patch

diff --git a/README b/README
index 1153152..9a3533d 100644
--- a/README
+++ b/README
@@ -24,6 +24,27 @@  Lesser General Public License 2.1 (See COPYING.LIB).
 
 BUILDING:
 
+In order to install build dependencies on Debian / Ubuntu do the following:
+    sudo apt-get install build-essential git pkg-config -y
+    sudo apt-get install libtracefs-dev libtraceevent-dev -y
+
+In order to install build dependencies on Fedora, as root do the following:
+    dnf install gcc make git pkg-config -y
+    dnf install libtracefs-devel libtraceevent-devel -y
+
+In case your distribution does not have the required libtracefs and
+libtraceevent libraries, build and install them manually:
+
+    git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
+    cd libtraceevent
+    make
+    sudo make install
+
+    git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
+    cd libtracefs
+    make
+    sudo make install
+
 To make trace-cmd
     make