Make Command Not Found Quick Solution Install Make on Your System

Resolving "make: command not found" Error

This error indicates the GNU Make utility, essential for compiling source code and automating tasks, is missing from your system. Here's how to install it based on your operating system:

Linux Installation

Debian/Ubuntu-based systems:

Update your package list, then install the make package:

Make Command Not Found Quick Solution Install Make on Your System
sudo apt update

sudo apt install make

Verify installation:

make --version

Fedora/RHEL-based systems:

Install using dnf or yum:

sudo dnf install make  # Fedora/RHEL 8+

# Or

Make Command Not Found Quick Solution Install Make on Your System

sudo yum install make # Older RHEL/CentOS

Verify installation afterward.

macOS Installation

Method 1: Install Xcode Command Line Tools:

Run the following command in Terminal:

xcode-select --install

Click Install when prompted and accept the license agreement. This bundle includes make.

Make Command Not Found Quick Solution Install Make on Your System

Method 2: Install via Homebrew:

If you have Homebrew installed:

brew install make

The GNU make will typically be installed as gmake. Use gmake or add its location to your PATH.

Windows Installation

Using WSL (Windows Subsystem for Linux):

Install a Linux distribution (e.g., Ubuntu) from the Microsoft Store. Follow the Linux installation steps above within your WSL terminal. This is the recommended approach for native-like functionality.

Make Command Not Found Quick Solution Install Make on Your System

Using MinGW or Cygwin:

Download and run the MinGW Installation Manager (mingw-get) or Cygwin Setup. During installation, ensure the make package (often found in "Devel" or "Development" categories) is selected. Add the installation's bin directory to your system PATH.

Using Chocolatey:

Install Chocolatey package manager, then run:

choco install make

Chocolatey will add make to your system PATH.

Make Command Not Found Quick Solution Install Make on Your System

Verification

After installation, verify make is available in any new terminal window or shell session:

make --version

If reinstalling or upgrading, restarting your terminal is often required for changes to take effect.

Related News