kcachegrind command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
kcachegrind: command not found
or when using sudo you get the following error message
sudo: kcachegrind: command not found
Solutions to kcachegrind: command not found
How To Fix kcachegrind: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu kcachegrind is provided by kcachegrind package.
kcachegrind is:
KCachegrind is a visualisation tool for the profiling data generated by calltree, a memory profiling tool for valgrind. Any executable can be profiled using calltree without being recompiled, including multi-threaded applications, shared libraries, and plugins.
For visualising the output from profiling tools other than Valgrind, several converters can be found in the kcachegrind-converters package.
This package is part of the KDE Software Development Kit module.
To fix this problem, we can install more using the command below.
sudo apt-get -y install kcachegrind
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install kcachegrind.
sudo apt -y install kcachegrind
Or if you have aptitude installed you can use the following command.
sudo aptitude install kcachegrind
Summary
In this tutorial we learn how to fix kcachegrind command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.