Amazon Cyber Monday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Make Command Not Found on Ubuntu: How to Fix It

If Ubuntu reports make: command not found, the usual cause is that the make build utility is not installed or cannot be found in your shell’s PATH. Install it with sudo apt update && sudo apt install make; if you are compiling software, installing Ubuntu’s build-essential package is often more useful because it also provides common compiler tools.

What the error means

make is a command-line utility that reads instructions—usually from a file named Makefile—and runs commands to build or otherwise manage a project. It is not the same thing as a compiler: a Makefile might tell make to run GCC, another compiler, a script, or any other command.

When you enter make, Ubuntu’s shell searches the directories listed in the PATH environment variable for an executable with that name. If it finds none, it prints a message such as make: command not found. That message points to command discovery, not necessarily a problem with the project or its Makefile.

Install make with APT

On a standard Ubuntu installation, use the distribution’s APT package manager:

  1. Refresh the package index: sudo apt update.
  2. Install Make: sudo apt install make.
  3. Check that it runs: make --version.

APT may ask for confirmation before installing. The update step refreshes information about available packages; it does not upgrade all installed software. You generally do not need to download a Make executable from an unrelated website or compile Make itself to resolve this error.

If you are working in an environment without administrator access, such as a managed server or container, you may not be able to install packages yourself. Ask the administrator or use the environment’s documented package-management process rather than trying to bypass its permissions.

When build-essential is the better choice

Having make installed does not guarantee that a project can compile. A typical C or C++ build may also need a compiler and development tools. Ubuntu groups commonly used build tools in the build-essential package. Install it with:

sudo apt update && sudo apt install build-essential

This package includes Make and commonly used compiler-related tools, including GCC and G++. It is a practical starting point for many source builds, but it does not install every dependency for every project. A project might still require specific development libraries, language runtimes, or tools listed in its README or installation instructions.

Choose the narrower make package if you only need the utility—for example, to run a Makefile that does not compile code. Choose build-essential when you expect to compile ordinary C or C++ software and want the standard toolchain as well.

Check installation and locate the command

After installation, these commands help distinguish an installation problem from an issue with the project:

  • make --version prints Make’s version if the shell can run it.
  • command -v make prints the executable’s location when it is available through PATH.
  • dpkg -s make reports package status if the package is installed through Ubuntu’s package system.

If APT says Make is already installed but the shell still cannot find it, check whether command -v make returns a path and inspect the current shell’s PATH with echo "$PATH". An unusual custom installation may put its executable in a directory that is not on your path. For a normal APT installation, the package manager handles the standard executable location; avoid changing PATH blindly or creating a second copy of the command.

If you installed a package in another environment—such as a container, a virtual machine, Windows Subsystem for Linux, or a remote server—make sure you are running the command in that same environment. Installing Make on your host system does not automatically install it inside a separate container.

Why make may still fail after installation

Once the shell recognizes make, a different error can reveal the next issue. For example, make: *** No targets specified and no makefile found. Stop. means Make ran but did not find a suitable Makefile or a requested target in the current directory. Change to the project directory and check its instructions:

cd /path/to/project
ls

Some projects use a lowercase makefile or GNUmakefile, or require a particular target such as make build. Follow the project’s documented command. A missing compiler or library can produce another error later, even though Make itself is installed. Read the first meaningful error in the build output; later failures may simply follow from it.

Also note that sudo make is not a fix for “command not found.” It runs a command with elevated privileges only after that command is available. Build as your regular user unless the project specifically documents a privileged installation step.

Frequently Asked Questions

How do I install make on Ubuntu?
Run sudo apt update && sudo apt install make, then verify with make --version. Install build-essential instead if you also need common C and C++ build tools.

Is make included with Ubuntu?
It is available in Ubuntu’s software repositories, but it may not be installed in a minimal or fresh system setup. Use APT to install it when a project needs it.

What is the difference between make and build-essential?
make installs the Make utility. build-essential is a convenient package of common build tools that includes Make and a standard compiler toolchain; it is broader than Make alone.

Why does make say no makefile found?
That message means the command is installed and running, but it cannot find a Makefile for the requested build in the current directory. Move to the project folder and check its documentation for the correct file or target.

Can I use sudo make to fix command not found?
No. Sudo changes permissions; it does not install a missing command or fix an incorrect PATH. Install Make with APT, then run the build as your normal user unless the project says otherwise.

Make Command Not Found on Ubuntu: How to Fix It
Scroll to top