HOWTO · Bash

Fix `bash: make: command not found` in Cygwin

Fix `bash: make: command not found` in Cygwin by installing the `make` package with the setup program or an existing apt-cyg installation.

On this page

If Cygwin Bash prints bash: make: command not found, the make executable is not available in that Cygwin environment. Install the make package there, either by updating the existing installation with setup-x86_64.exe or by using apt-cyg if it is already usable. Then run make -v in the same Cygwin Terminal to check that the command is available.

Solve bash: make: command not found in Cygwin via Installation

The Cygwin setup program can add packages to an existing installation. Start the same setup-x86_64.exe used to install Cygwin. If you no longer have it, download the setup program from the Cygwin website.

Proceed through setup using the same root installation directory and installation settings as the existing Cygwin environment. Keep the same local package directory if you know it, then choose a download site. On the package selection screen, change the view to Full, search for make, and select the make package by clicking its Skip entry. Review the proposed changes and continue to finish the update. The optional make-debuginfo package is not needed to run make.

After setup finishes, return to the Cygwin Terminal and run make -v. This prints the installed GNU Make version and confirms that the shell can find the command. The installed version and remaining output depend on the package currently available from your selected mirror, so use the version printed on your machine rather than relying on a fixed version number.

You can also run make without a makefile as a quick command lookup check. A message such as No targets were specified and no makefile found means make started, even though there is no build file to process. Use make -v when you only want to verify command availability without trying to build a project.

Solve bash: make: command not found in Cygwin via apt-cyg

If apt-cyg is already installed and usable in your Cygwin Terminal, install the package with apt-cyg install make. This route uses the existing package manager and does not require the setup-program screens.

When the command completes, run make -v in that same terminal to confirm that make is available. The install command and version check are Cygwin operations; their output depends on the configured mirrors and installed package version.

If you want a shell to print the package command for copying, Bash can format it from a package name:

package=make
printf 'apt-cyg install %s\n' "$package"
apt-cyg install make

This only prints the command; enter apt-cyg install make in Cygwin to install the package. If apt-cyg is not available, use the setup-program method above. This article does not rely on a bootstrap script for apt-cyg; use a trusted, current installation method for that tool before choosing this route.