command not found “Error in Ubuntu

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:

ls /usr/bin/make

Further, check if you are able to run the command with its absolute path:

/usr/bin/make --version

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

Go out:

Update Linux System

Then install the make command:

sudo apt-get install -y make

Go out:

Install the Linux make command

If the above commands don’t work, you can install make by downloading the build-essential package, as follows:

sudo apt install build-essential

Go out:

sudo apt build-essential linux

The build-essential package consists of all necessary packages related to building and compiling packages. The make command is one of these packages.

Related: Why You Should Update Linux Package Repositories Before Installing New Software

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.


A laptop with coding
Troubleshoot Linux Server Problems With These 5 Troubleshooting Steps

Get your Linux server back up and running in minutes with these smart troubleshooting tips.

Read more


About the Author

Source link

About Brian Steele

Brian Steele

Check Also

Where can I quickly find Linux software?

– Advertising – Finding new applications using the Linux command line is difficult. These four …

Leave a Reply

Your email address will not be published. Required fields are marked *