makefile2graph command not found

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

Introduction

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

makefile2graph: command not found

or when using sudo you get the following error message

sudo: makefile2graph: command not found

Solutions to makefile2graph: command not found

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

In Ubuntu makefile2graph is provided by makefile2graph package.

makefile2graph is:

Output is a graphviz-dot file, a Gexf-XML file or a list of the deepest independent targets that should be made. Sub-makefiles are not supported.

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

sudo apt-get -y install makefile2graph

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

You can also use apt command to install makefile2graph.

sudo apt -y install makefile2graph

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

sudo aptitude install makefile2graph

Summary

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