JIYIK CN >

Current Location:Home > Learning > OPERATING SYSTEM >

Solve the error Make Command Not Found in Cygwin

Author:JIYIK Last Updated:2025/04/21 Views:

Cygwin allows Windows users to access certain Linux features and includes a large number of GNU and open source tools that are commonly found in popular Linux distributions.

When using Cygwin, it is easy to encounter a command not found error message; in our case, it was the make command not found. This error message appears when the make utility is not available in our terminal.

This article will discuss the method to deal with bash: make: command not found in Cygwin.


Solve bash: make: command not found in Cygwin by installing

The make utility allows us to build, maintain, and compile large programs or groups of programs and automatically determine which parts of a large program need to be recompiled and use certain parameters or arguments to recompile such programs.

The structure of a typical make command is as follows, and a makefile is usually used.

make [ -f makefile ] [ options ] ... [ targets ] ...

In the Cygwin terminal, we can use the make utility; however, depending on how we installed it, we may not be able to access it and may not find the make command.

To check if make is available in your Cygwin terminal, accessing make directly or through its debug mode will give you output or errors. If it gives you make command not found errors, then it does not exist.

make command not found

So if you use the make command with other parameters, you should see an error message similar to the one above. Now that we have determined that this is because the make utility or package does not exist, the goal is to install it.

Using the Cygwin installation file setup-x86_64.exe, which you use to install the terminal in a package, we can update our existing installation by selecting a package.

You can update an existing installation using the make utility in a Cygwin terminal by following the steps below.

  1. Go to your setup-x86_64.exe and start the installation just like you did when you first installed Cygwin. If you happened to delete that file, you can go to the Cygwin installation section and download the installation file (about 1.3 MB).

    Select the installation file

  2. Select the same download source and root installation directory as last time to prevent any problems. Also, the installation conditions must be identical to prevent two Cygwin terminal instances from appearing.

    Select the installation type

    Select the installation directory

  3. Select the same Local Package Directory as last time, but if you don't remember, leave it as recommended.

    Select the local package directory

  4. Select your internet connection and then the download site; the first one is the most preferred.

    Select Download Site

    Downloading

  5. Change the View tab to Full, search for make in the search field, and scroll to find make in the list of packages (highlighted). Remember to double-click the Skip value to see the version.

    Additionally, you can select make-debuginfo to allow easy debug mode. Select Next.

    Select Package

  6. Check the Review and Confirm Changes screen to ensure installation.

    View changes

  7. You should see a download progress like the one shown below.

    Download progress

  8. The update installation is complete and we can now use the make utility through the Cygwin terminal.

    Installation Complete

Now, let's use the make command to see if we get the same error. If we use the make command, it will give us a make error telling us that no target was specified and no makefile was found.

This shows that we have delivered.

make

Now, let's check the version (a final check to make sure make is available to you) using the following command.

make -v

Output:

GNU Make 4.3
Built for x86_64-pc-cygwin
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

make -v


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

If you have apt-cyg, the package manager utility that allows you to keep track of installed packages on Cygwin, then you can easily solve the problem of the make command not being easily found.

Using apt-cyg, you can install, remove, download, and retrieve packages, among other operations. Here, we will install make using apt-cyg using the following command.

apt-cyg install make

When we use the above command in Cygwin, it should produce the following result.

apt-cyg install make

apt-cyg install make complete

Now, let's check that the operation was successful by checking the version of make.

make -v

make -v cyg

Assuming you don't have apt-cyg, this is a great tool on Cygwin that allows you to install, update, or remove packages without having to repeat the installation process as in the previous section.

In this case, you will need to do an update installation using the Cygwin installation file, just one more time. After the last time, you will not need the file again.

After starting the update installation process, once you reach the "Select Packages" screen, search for lynx and install it. Then, open your Cygwin terminal and enter the following commands one after the other.

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin

The last command installs apt-cyg, which will now be used to install any additional packages or utilities that are not present in your existing installation.

apt-cyg -v

You can check if the apt-cyg installation is complete using the apt-cyg -v command. Also, with a simple command, you can download any package or utility.

apt-cgy install utility-name

For reprinting, please send an email to 1244347461@qq.com for approval. After obtaining the author's consent, kindly include the source as a link.

Article URL:

Related Articles

Run a batch (.bat) file in CMD

Publish Date:2025/04/21 Views:169 Category:OPERATING SYSTEM

This article will show you how to use CMD to run a batch file.bat. There are three ways in which you can run a batch file. Let us discuss them in the following sections. Run batch (.bat) files in CMD by directly clicking on them This way yo

Running batch scripts using Task Scheduler

Publish Date:2025/04/21 Views:188 Category:OPERATING SYSTEM

This article will show you how to use Task Scheduler to run a batch file. Running batch scripts using Task Scheduler With Task Scheduler, you can automate tasks to run automatically at specific times. It only takes a few steps and you don't

Pull all branches in Git

Publish Date:2025/04/21 Views:98 Category:OPERATING SYSTEM

Git provides us a platform where we can maintain multiple separate development commits for a new project called branches. We can restore the latest version of a branch from a remote repository as needed or we can restore all branches at onc

Git list remote branches

Publish Date:2025/04/20 Views:55 Category:OPERATING SYSTEM

This article will show you how to list remote repositories from your local branch. A remote repository is a project hosted on a server, such as Github/Gitlab. git remote Allows us to use short names (aliases) to execute commands instead of

Update the repository remotely by setting

Publish Date:2025/04/20 Views:120 Category:OPERATING SYSTEM

In this tutorial, we will discuss how to set up the central repository as a remote for our local repository so that our branch is updated whenever the central repository changes. We should always perform this step before making edits to our

Rename Git repository

Publish Date:2025/04/20 Views:100 Category:OPERATING SYSTEM

In this article, we will discuss renaming Git repositories. We can explain this in different ways. It can rename the displayed name, the repository on GitHub, or the folder of the repository. We will discuss these and go through the steps w

Creating tags in a Git repository

Publish Date:2025/04/20 Views:118 Category:OPERATING SYSTEM

In this tutorial, we will discuss how to create tags in a Git repository. Creating tags in a Git repository In Git, we may want to mark certain commits or specific points in the history of the project repository. To do this, we can use the

Push Git tags to remote repositories

Publish Date:2025/04/20 Views:177 Category:OPERATING SYSTEM

If you create a git tag locally, your intention must be to share your changes with your team for easy tracking. Commit is one of the common operations to share changes. But another sharing and tracking idea added to it is Git Tags. This art

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Recommended

Tags

Scan the Code
Easier Access Tutorial