makedepf90 command not found

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

Introduction

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

makedepf90: command not found

or when using sudo you get the following error message

sudo: makedepf90: command not found

Solutions to makedepf90: command not found

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

In Ubuntu makedepf90 is provided by makedepf90 package.

makedepf90 is:

Makedepf90 is a program for automatic creation of Makefile dependency lists for Fortran source code. Makedepf90 supports MODULE:s, INCLUDE:s, cpp #include:s, f90ppr $include:s and coco ??include:s and set-files.

The original idea was to provide the same functionality for Fortran as

gcc -MM *.c

does for C.

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

sudo apt-get -y install makedepf90

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

You can also use apt command to install makedepf90.

sudo apt -y install makedepf90

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

sudo aptitude install makedepf90

Summary

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