create_gcov command not found

In this troubleshooting guide we learn how to fix create_gcov command not found error message

Introduction

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

create_gcov: command not found

or when using sudo you get the following error message

sudo: create_gcov: command not found

Solutions to create_gcov: command not found

How To Fix create_gcov: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu create_gcov is provided by autofdo package.

autofdo is:

The package contains a tool to convert perf.data profile to AutoFDO profile that can be used by GCC and LLVM.

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

sudo apt-get -y install autofdo

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

You can also use apt command to install autofdo.

sudo apt -y install autofdo

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

sudo aptitude install autofdo

Summary

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