lttng-gen-tp command not found

In this troubleshooting guide we learn how to fix lttng-gen-tp command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

lttng-gen-tp: command not found

or when using sudo you get the following error message

sudo: lttng-gen-tp: command not found

Solutions to lttng-gen-tp: command not found

How To Fix lttng-gen-tp: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lttng-gen-tp is provided by liblttng-ust-dev package.

liblttng-ust-dev is:

The userspace tracer is designed to provide detailed information about userspace activity. Like the kernel tracer, performance is the main goal. Tracing does not require system calls or traps. UST instrumentation points may be added in any userspace code including signal handlers and libraries.

This package contains the UST library development files necessary to compile and link applications against liblttng-ust.

To fix this problem, we can install more using the command below.

sudo apt-get -y install liblttng-ust-dev

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install liblttng-ust-dev.

sudo apt -y install liblttng-ust-dev

Or if you have aptitude installed you can use the following command.

sudo aptitude install liblttng-ust-dev

Summary

In this tutorial we learn how to fix lttng-gen-tp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.