Want to create a package but get stuck with the “make: command not found” error in Ubuntu? Here’s how you can get rid of the error for good.
The make command is probably one of the most widely used commands in the Linux ecosystem. This command is used to build and compile programs directly from source code.
You, as a Linux user, can use the make command to compile the utilities and install them using the command line. But sometimes the system returns the error “make: command not found“while users try to create a package using make.
At the end, you will briefly understand how to fix the “make: command not found” error in Linux.
Fixed “make: command not found” error
Although make is one of the standard Linux packages preinstalled in most Linux distributions, it is sometimes not available on a system. In this case, every time the user tries to create a package using make, the system returns the command not found error.
Before fixing the error, you must first check if make is installed on your system. To do this, use the ls function to check the contents of the / usr / bin / make phone book:
Further, check if you are able to run the command with its absolute path:
The aforementioned command will display the version of make installed on your system.
If the above methods do not work and display an error, it means that make is not installed on your system. In such situations, installing the make command resolves the problem.
But first, update your system’s repository list using APT:
sudo apt-get update
Then install the make command:
sudo apt-get install -y make
If the above commands don’t work, you can install make by downloading the build-essential package, as follows:
sudo apt install build-essential
The build-essential package consists of all necessary packages related to building and compiling packages. The make command is one of these packages.
Troubleshooting Linux Errors
The make command is an essential compilation tool in Linux. The errors provided by the system are usually self-describing and experienced users can find the solution by viewing the error statement.
In addition to local workstations, Linux-based servers also generate such errors. You can solve most problems by performing a basic audit on the server.
Get your Linux server back up and running in minutes with these smart troubleshooting tips.
About the Author