cflow command not found

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

Introduction

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

cflow: command not found

or when using sudo you get the following error message

sudo: cflow: command not found

Solutions to cflow: command not found

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

In Ubuntu cflow is provided by cflow package.

cflow is:

GNU cflow analyzes a collection of source files written in C language and outputs a graph charting dependencies between various functions.

GNU cflow is able to produce two kinds of graphs: direct and reverse. Direct graph begins with the main function (or any other function), and displays recursively all functions called by it. In contrast, reverse graph is a set of subgraphs, charting for each function its callers, in the reverse order. Due to their tree-like appearance, graphs can also be called trees.

In addition to these two output modes, cflow is able to produce a cross-reference listing of all the symbols encountered in the input files.

GNU cflow also provides detailed control over symbols that will appear in its output, allowing to omit those that are of no interest to the user. The exact appearance of the output graphs is also configurable.

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

sudo apt-get -y install cflow

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

You can also use apt command to install cflow.

sudo apt -y install cflow

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

sudo aptitude install cflow

Summary

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