How to fix the error Make Command Not Found in Cygwin
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.
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.
-
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 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 same Local Package Directory as last time, but if you don't remember, leave it as recommended.
-
Select your internet connection and then the download site; the first one is the most preferred.
-
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.
-
Check the Review and Confirm Changes screen to ensure installation.
-
You should have a download progress like the image below.
-
The update installation is complete and we can now use the make utility through the Cygwin terminal.
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 the target was not specified and the makefile was not found.
This shows that we have delivered.
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.
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.
Now, let's check that the operation was successful by checking the version of make.
make -v
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.
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.
Related Articles
How to decompress x.tar.xz format files under Linux
Publish Date:2025/04/08 Views:186 Category:OPERATING SYSTEM
-
A lot of software found today is in the tar.xz format, which is a lossless data compression file format that uses the LZMA compression algorithm. Like gzip and bzip2, it supports multiple file compression, but the convention is not to compr
Summary of vim common commands
Publish Date:2025/04/08 Views:115 Category:OPERATING SYSTEM
-
In Linux, the best editor should be vim. However, the complex commands behind vim's powerful functions also make us daunted. Of course, these commands do not need to be memorized by rote. As long as you practice using vim more, you can reme
Detailed explanation of command return value $? in Linux
Publish Date:2025/04/08 Views:58 Category:OPERATING SYSTEM
-
? is a special variable. This variable represents the return value of the previous command. That is to say, when we run certain commands, these commands will return a code after running. Generally, if the command is successfully run, the re
Common judgment formulas for Linux script shell
Publish Date:2025/04/08 Views:159 Category:OPERATING SYSTEM
-
In shell script programming, predicates are often used. There are two ways to use predicates, one is to use test, and the other is to use []. Let's take a look at how to use these two methods through two simple examples. Example 1 # test –
Shell script programming practice - specify a directory to delete files
Publish Date:2025/04/08 Views:98 Category:OPERATING SYSTEM
-
Usually, in Linux system we need to frequently delete some temporary files or junk files. If we delete them one by one manually, it will be quite troublesome. I have also been learning shell script programming recently, so I tried to write
Use of Linux command at - set time to execute command only once
Publish Date:2025/04/08 Views:158 Category:OPERATING SYSTEM
-
This article mainly involves a knowledge point, which is the atd service. Similar to this service is the crond service. The functions of these two services can be similar to the two functional functions of javascript. Those who have learned
Use of Linux command crontab - loop execution of set commands
Publish Date:2025/04/08 Views:170 Category:OPERATING SYSTEM
-
Compared with at , which executes a command only once, crontab, which we are going to talk about in this article, executes the set commands in a loop. Similarly, the use of crontab requires the support of the crond service. The service is s
Linux practice - regularly delete files under the directory
Publish Date:2025/04/08 Views:198 Category:OPERATING SYSTEM
-
Since we want to delete the files under the directory regularly, we need to use the Linux crontab command. And the content format of each work routine is also introduced in the format of each crontab work. Similarly, we need to use shell sc
How to use the Linux file remote copy command scp
Publish Date:2025/04/08 Views:151 Category:OPERATING SYSTEM
-
Scp copies files between two hosts over the network, and the data is encrypted during transmission. Its underlying layer uses ssh for data transmission. And it has the same authentication mechanism and the same security level as ssh. When u