Command ‘make’ not found on Ubuntu 20.04 Focal Fossa

In this tutorial you will learn how to install the make command on Ubuntu 20.04 Focal Fossa.

In this tutorial you will learn:

  • How to install make command
  • How to troubleshoot the Command 'make' not found error

Command 'make' not found on Ubuntu 20.04 Focal Fossa

Command ‘make’ not found on Ubuntu 20.04 Focal Fossa

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to install make command step by step instructions



The following error message may appear on your terminal hinting the unavailability of the make command:

Command 'make' not found, but can be installed with:
OR
bash: /usr/bin/make: No such file or directory
  1. To resolve this issue first try to install the make command. First and the most obvious installation method is to execute the following command:
    $ sudo apt install make
    

    However, yet an another alternative and probably also the solution you want is the installation of the entire development package build-essential which also includes the make command:

    $ sudo apt install build-essential
    
  2. In case the make command is still not found check whether the make binary executable exists:
    $ ls  /usr/bin/make
    /usr/bin/make
    

    Check if you can execute the command using a full path:

    $ /usr/bin/make --version
    GNU Make 4.2.1
    Built for x86_64-pc-linux-gnu
    
  3. Next, ensure the path to the make is a part of your executable shell path:
    $ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    
  4. Lastly, you may try to reinstall the make command:
    $ sudo dpkg-reconfigure make