Note: This guide needs root access, which is full control of the server. It is for VPS and dedicated server owners.
What does the error mean?
Bash is the program that reads the commands you type on a Linux server. When you type a command, bash looks for a program with that name. "Command not found" means the program is not installed.
make is a helper tool. It builds software from its source code. Source code is the text written by programmers. Many install guides say to run ./configure, then make, then make install. If make is missing, the second step fails.
Check first
which make
If this prints nothing, make is not installed.
Install it on CentOS, AlmaLinux or Rocky Linux
- Connect to your server with SSH.
- Run this command.
yum install make
This installs the make tool. On newer systems, use dnf install make.
- Type
yand press Enter when asked to confirm.
Install it on Ubuntu or Debian
- Update the software list.
apt-get update
- Install make.
apt-get install make
Install the whole toolkit
Building software often needs more than make. It also needs a compiler, which turns source code into a running program. Install the full set in one go.
On CentOS-type systems:
yum groupinstall "Development Tools"
On Ubuntu or Debian:
apt-get install build-essential
These bring in make, gcc and other common build tools.
Check it worked
make --version
This prints the version number. Now run your build steps again.
Warning: Only build software from sources you trust. Building runs code as root.
Quick recap
- The error means
makeis not installed. - Use
yum install makeorapt-get install make. - Install the whole build toolkit to avoid more missing pieces.
- Check with
make --version.