Fix: bash make command not found

In Linux, the “make” is the most frequently used command for the developers which manages the group of programs and files through the source code. Using this, developers can install and compile various utilities in the terminal. Users can face the error “bash make command not found” if the make command is not installed or corrupted in the operating system.

In this post, we will demonstrate the reason and solutions for the error “bash make command not found”. The content for the post is as follows:

Reason: Package Not Installed

The only reason you may encounter this error is that the make module command is not installed in the Linux operating system.

There are three possible solutions to resolve this error which are discussed below.

Solution 1: install Make Package

If the Make command is not installed or the make directory is missing, then you can install it using the below command:

For Debian/Ubuntu:

$ sudo apt install make

For Fedora/CentOS/RHEL:

$ sudo dnf install make

Once the make command will be installed, you can verify it by using “make –version” command:

$ make --version

It prints “GNU Make” and the version of make command which means that make command is successfully installed in the operating system.

Furthermore, you can also check the make directory using the ls command:

$ ls /usr/bin/make

Check if the installation of the make command fixes your error; if it is not, then go to the below solution 2.

Solution 2: Install Build Essential Package

Build Essential Packages are the kind of meta-packages that are used while compiling programs or software. If installing the make command is not working, then no need to worry. There is an alternate command that can be used to install the make package in Linux:

For Debian/Ubuntu:

$ sudo apt install build-essential

For Fedora/CentOS/RHEL:

$ sudo dnf install "C Development Tools and Libraries"

Using the above commands, users can install the make Package in Linux.

For more details on the build-essentials, read out our article on build-essential.

Solution 3: Reinstall the Make Package

This solution will be used in a different scenario; if the make command is installed but not working correctly and displaying an error, then try to reinstall the make command. To do so, run the following command in the terminal:

For Debian/Ubuntu:

$ sudo apt install --reinstall make

For Fedora/CentOS/RHEL:

First remove the package using the following command:

$ sudo dnf autoremove "C Development Tools and Libraries"

Once the package is removed, then install it again via the command:

$ sudo dnf install "C Development Tools and Libraries"

These are the three solutions to fix the error of the make command not found in Linux.

Conclusion

The reason for the error “bash make command not found” is that the make command is not installed or corrupted. To fix this error, install the make command in Linux, or install the build-essential package if the make command installation doesn’t work. You can also reinstall the make package to fix this error. This post has demonstrated all the possible reasons and solutions for the given error.