9 Answers
While instaling (updating) check ‘Devel’ to ‘Install’, it will install a lot of MB but helps. I don’t have time to check which exacly I (we) need.
answered Nov 21, 2011 at 17:10
MateuszMateusz
1,17910 silver badges15 bronze badges
1
-
That would install unnecessary things. You only should look for gcc devel and make packages…
Jun 27, 2018 at 5:01
You probably have not installed make. Restart the cygwin installer, search for make, select it and it should be installed. By default the cygwin installer does not install everything for what I remember.
Ahmad
5,5718 gold badges41 silver badges57 bronze badges
answered Jan 28, 2011 at 13:07
neuroneuro
15k3 gold badges36 silver badges59 bronze badges
1
-
As a caveat, you can not do this from Programs & Features. It has to be the actual installer.
Sep 17, 2015 at 1:06
follow some steps below:
-
open cygwin setup again
-
choose catagory on view tab
-
fill «make» in search tab
-
expand devel
-
find «make: a GNU version of the ‘make’ ultility», click to install
-
Done!
answered Jul 15, 2018 at 10:30
VietHuongVietHuong
1891 silver badge5 bronze badges
Follow these steps:
- Go to the installer again
- Do the initial setup.
- Under library — go to devel.
- under devel scroll and find make.
- install all of library with name make.
- click next, will take some time to install.
- this will solve the problem.
answered Feb 10, 2017 at 18:45
when selecting packages at installation or update search for ‘make’ in searchbox and select the boxes showing ‘make’ and also ‘gcc’ mostly found in devel package.
answered May 11, 2015 at 11:16
if you have apt-cyg
, then you are done with one command
apt-cyg install make
if you don’t have apt-cyg
, then install it as it will simplify your life.
answered Apr 9, 2021 at 20:42
I had the same problem and it was due to several installations of cygwin.
Check the link (the icon) that you click on to start the terminal. In case it does not point to the directory of your updated cygwin installation, you have the wrong installation of cygwin. When updating, double check the location of cygwin, and start exactly this instance of cygwin.
answered Mar 20, 2017 at 17:24
langlauf.iolanglauf.io
3,0292 gold badges28 silver badges45 bronze badges
2
-
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. — From Review
Mar 20, 2017 at 20:36
-
I think this does provide an answer. I had the same problem as the author and this solved it. I rephrased the answer.
Mar 20, 2017 at 20:42
I faced the same problem. Follow these steps:
- Goto the installer once again.
- Do the initial setup.
- Select all the libraries by clicking and selecting install (the one already installed will show reinstall, so don’t install them).
- Click next.
- The installation will take some time.
answered Oct 14, 2016 at 6:42
I faced the same problem too. Look up to the left side, and select (full). (Make), (gcc) and many others will appear. You will be able to chose the search bar to find them easily.
answered Jan 25, 2018 at 2:43
Achie1Achie1
3053 silver badges13 bronze badges
I try the system, but haven’t luck, the result is this
$ make
bash: make: command not found
I’m on Windows 10
rubenmedios
changed the title
Any idea for haot to run «make» commands in windows
Any idea for how to run «make» commands in windows
Jun 4, 2016
@rubenmedios you can try downloading the Make executable from http://www.mingw.org/. Though I remember that it’s not very straight forward.
How did you get your bash environment?
@rubenmedios make
is an external task automation tool that has basically nothing to do with urubu
. Of course, many people on Linux/Unix like to use it because that’s were it comes from.
I have close to zero experience with Windows. However, on one occasion I had to install urubu
for a customer and I got it to work, including the make
utitlity. So it should be possible to set this up. Otherwise, just use the urubu
commands natively, as described in the manual.
@rubenmedios could you specify more details on the problem — if it is still active?
basic info would be:
WHY do you want to use make (and not cmake or qmake)
HOW does your environment look like
do you use a integrated development environment (IDE) for your project ((if not look at PyCharm CE))
on windows you can use mingw32-make.exe — if you installed the compiler and add the path to your environment variable PATH
to check it:
- open the execute dialog (win+R)
- open a command prompt by entering cmd.exe (plus enter)
- write «set PATH» without the apostrophe
OR use rapid environment editor to look at the PATH variable.
Sorry if this is too low level — but from your question I assumed that you did not know it…
Feel free to ask for more advice.
Felix
If it is only to generate binary files, I use:
cmake —build .
Hi,
make, cmake, mingw32-make….all of them give an error command not found…
any suggestions ?
thanks
regards
ludo
Hi,
I’m running bash (Version 4.4.12(3)-release (x86_64-cygwin) on Windows 10.
When i ran the ‘make’ command i received the bash: make: command not found
I searched in my mingw program files for the (make) executable. C:..\MinGW\bin\make.exe
I then added the make executable directory location as one of my PATH environments
Restart bash and make was able to work.
Just add environment variable
C:\Program Files (x86)\GnuWin32\bin
Thats All.
Cheers,
Ranjit
Follow the step:
Step 1 — Install Mingw, through the MinGW installer.
Step 2 — Open Command Prompt, Try to type mingw-get, if this command is working then follow the next step otherwise go to step one and install it properly.
Step 3 — In command prompt, type mingw-get install mingw32-make.exe, and hit enter. An appropriate make version will be installed in your computer.
Step 4 — Go to C:/MingW/bin folder and find the mingw32-make.exe file and copy it and paste it in the same folder and then rename the copied file to make.exe, That’s it. Now you are good to go. type command make in prompt to see it’s working or not.
newguy, fyxz, amarashifar, JmLegacy, and mirjabbarbadalov reacted with thumbs down emoji
mihiretab-taye, megahound, and leoncarey reacted with rocket emoji
Follow the step:
Step 1 — Install Mingw, through the MinGW installer.
Step 2 — Open Command Prompt, Try to type mingw-get, if this command is working then follow the next step otherwise go to step one and install it properly.
Step 3 — In command prompt, type mingw-get install mingw32-make.exe, and hit enter. An appropriate make version will be installed in your computer.
Step 4 — Go to C:/MingW/bin folder and find the mingw32-make.exe file and copy it and paste it in the same folder and then rename the copied file to make.exe, That’s it. Now you are good to go. type command make in prompt to see it’s working or not.
-this has worked for me, thanks
It’s still not working for me
Follow the step:
Step 1 — Install Mingw, through the MinGW installer.
Step 2 — Open Command Prompt, Try to type mingw-get, if this command is working then follow the next step otherwise go to step one and install it properly.
Step 3 — In command prompt, type mingw-get install mingw32-make.exe, and hit enter. An appropriate make version will be installed in your computer.
Step 4 — Go to C:/MingW/bin folder and find the mingw32-make.exe file and copy it and paste it in the same folder and then rename the copied file to make.exe, That’s it. Now you are good to go. type command make in prompt to see it’s working or not.
this didnot work for me. I am using make to start a postgres db for my go project.
- Download ( https://sourceforge.net/projects/ezwinports/files/make-4.3-without-guile-w32-bin.zip/download ) without guile from (Parent websites : https://sourceforge.net/projects/ezwinports/files/).
- Extract it.
- Copy the contents inside \mingw64 folder (Do NOT overwrite or Replace any files).
- Restart GIT Bash. «make» command will start working for you now as it works on Linux systems.
It’s still not working for me
One suggestion to you, Instead of taking photo from phone you can take screenshot or use snipping tool.
when i try to run make
C:\particualr\folder\where\makefiles_present>make
#its shows
make: *** No targets specified and no makefile found. Stop.
#even though the files are name Makefile
it says make not found
it says make not found
you must be on a 64 bit version
Can you please tell me how I can resolve this error
Try mingw-get install mingw32-make
(without the .exe)
9 Answers
While instaling (updating) check ‘Devel’ to ‘Install’, it will install a lot of MB but helps. I don’t have time to check which exacly I (we) need.
answered Nov 21, 2011 at 17:10
MateuszMateusz
1,17910 silver badges15 bronze badges
1
-
That would install unnecessary things. You only should look for gcc devel and make packages…
Jun 27, 2018 at 5:01
You probably have not installed make. Restart the cygwin installer, search for make, select it and it should be installed. By default the cygwin installer does not install everything for what I remember.
Ahmad
5,5718 gold badges41 silver badges57 bronze badges
answered Jan 28, 2011 at 13:07
neuroneuro
15k3 gold badges36 silver badges59 bronze badges
1
-
As a caveat, you can not do this from Programs & Features. It has to be the actual installer.
Sep 17, 2015 at 1:06
follow some steps below:
-
open cygwin setup again
-
choose catagory on view tab
-
fill «make» in search tab
-
expand devel
-
find «make: a GNU version of the ‘make’ ultility», click to install
-
Done!
answered Jul 15, 2018 at 10:30
VietHuongVietHuong
1891 silver badge5 bronze badges
Follow these steps:
- Go to the installer again
- Do the initial setup.
- Under library — go to devel.
- under devel scroll and find make.
- install all of library with name make.
- click next, will take some time to install.
- this will solve the problem.
answered Feb 10, 2017 at 18:45
when selecting packages at installation or update search for ‘make’ in searchbox and select the boxes showing ‘make’ and also ‘gcc’ mostly found in devel package.
answered May 11, 2015 at 11:16
if you have apt-cyg
, then you are done with one command
apt-cyg install make
if you don’t have apt-cyg
, then install it as it will simplify your life.
answered Apr 9, 2021 at 20:42
I had the same problem and it was due to several installations of cygwin.
Check the link (the icon) that you click on to start the terminal. In case it does not point to the directory of your updated cygwin installation, you have the wrong installation of cygwin. When updating, double check the location of cygwin, and start exactly this instance of cygwin.
answered Mar 20, 2017 at 17:24
langlauf.iolanglauf.io
3,0292 gold badges28 silver badges45 bronze badges
2
-
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. — From Review
Mar 20, 2017 at 20:36
-
I think this does provide an answer. I had the same problem as the author and this solved it. I rephrased the answer.
Mar 20, 2017 at 20:42
I faced the same problem. Follow these steps:
- Goto the installer once again.
- Do the initial setup.
- Select all the libraries by clicking and selecting install (the one already installed will show reinstall, so don’t install them).
- Click next.
- The installation will take some time.
answered Oct 14, 2016 at 6:42
I faced the same problem too. Look up to the left side, and select (full). (Make), (gcc) and many others will appear. You will be able to chose the search bar to find them easily.
answered Jan 25, 2018 at 2:43
Achie1Achie1
3053 silver badges13 bronze badges
- Solve
bash: make: command not found
in Cygwin via Installation - Solve
bash: make: command not found
in Cygwin viaapt-cyg
Cygwin allows Windows users access to certain Linux functionalities and contains a large collection of GNU and Open Source tools often found within popular Linux distributions.
When using Cygwin, it is highly common to face command not found
error messages; in our case, it is the make command not found
. This error message comes to light when the make
utility is unavailable within our terminal.
This article will discuss ways to deal with bash: make: command not found
in Cygwin.
Solve bash: make: command not found
in Cygwin via Installation
The make
utility allows us to build, maintain and compile large or groups of programs and automatically determine which parts of a large program need to be recompiled and make use of certain arguments or parameters to recompile such programs.
A typical make
command is structured like the below and often uses a makefile
.
make [ -f makefile ] [ options ] ... [ targets ] ...
Within Cygwin Terminal, we can use the make
utility; however, depending on how we install it, we might not have access to it and might get the make command not found
.
To check if make
is available within your Cygwin Terminal, accessing make
directly or via its debug mode will give you an output or error. It is not present if it gives you the make command not found
error.
Therefore, if you use the make
command with other arguments, you should see an error message similar to the above image. Now that we have established that it’s because the make
utility or package isn’t present, the goal is to install it.
With the Cygwin installation file, setup-x86_64.exe
, you employed to install the terminal in the package, we can update our existing installation by selecting a package.
Follow the following steps, and you can update your existing installation with the make
utility tool within your Cygwin Terminal.
-
Go to your
setup-x86_64.exe
and start the installation like you did when installing Cygwin for the first time. If you happen to have deleted the file, you can go to Cygwin installation section to download the setup file (roughly 1.3 MB). -
Select a
Download Source
and the sameRoot Install Directory
as the last time to prevent any issues. Also, the install conditions need to be the same to prevent two instances of Cygwin Terminal. -
Select the same
Local Package Directory
as the last time, but if you don’t remember, do leave it as what is recommended. -
Select your internet connection, and select a download site; the first one is most preferred.
-
Change the
view
tab toFull
, search formake
within the search field, and scroll to findmake
(highlighted) among the package list. Remember to double-click theSkip
value to see the version.Also, you can select
make-debuginfo
to allow easy debugging mode. SelectNext
. -
Check the
Review and confirm changes
screen to make suremake
installs. -
You should download progress like the image below.
-
The update installation is done, and now we will have the
make
utility available via the Cygwin Terminal.
Now, let’s play with the make
command to see if the same errors are present. If we use the make
command, it gives us a make
error telling us No targets were specified and no makefile found
.
That shows us that we have make
available.
Now, with the following command, let’s check the version (the ultimate check to ensure that make
is available for you).
The 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 via apt-cyg
If you have apt-cyg
, the package manager utility, which allows you to track installed packages on Cygwin, then you can easily solve the make command not found
easily.
With apt-cyg
, you can install, remove, download, and retrieve packages, among other operations. Here, we will use apt-cyg
to install make
using the following command.
When we use the above command in Cygwin, the below should be the outcome.
Now, let’s check if the operation was successful by checking the version of make
.
Suppose you don’t have apt-cyg
, a great tool on Cygwin which allows you to install, update or remove packages without repeating the installation process as in the above section.
In that case, you will need to do the update installation using the Cygwin installation file, just one more time. One last time, and you won’t need the file anymore.
After starting the process of updating the installation, once you reach the Select Package
screen, search for lynx
and install it. Afterward, open your Cygwin Terminal, and enter the following commands sequentially.
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 other package or utility that’s not present within your existing installation.
You can check if the apt-cyg
installation was complete using the apt-cyg -v
command. Also, with a simple command, you can download any package or utility.
apt-cgy install utility-name
The «bash: make: command not found» error is a common issue for users who are trying to run the «make build» command on the MINGW64 terminal. This error occurs when the make utility is not installed on the system or not added to the PATH environment variable, which prevents the bash shell from finding the make executable. In this article, we will show you how to fix this error and run the «make build» command successfully.
Method 1: Install Make Utility
To fix the «bash: make: command not found» error in MINGW64, you can install the Make utility. The Make utility is a build automation tool that automatically builds executable programs and libraries from source code. Here are the steps to install Make utility:
- Open the MINGW64 terminal and run the following command to update the package list:
- Run the following command to install the Make utility:
- Verify that the Make utility is installed by running the following command:
This should display the version of the Make utility that you have installed.
Once you have installed the Make utility, you should be able to run the «make build» command without any errors. If you still encounter the «bash: make: command not found» error, try restarting the terminal and running the command again.
That’s it! By installing the Make utility, you have resolved the «bash: make: command not found» error in MINGW64.
Method 2: Add Make to PATH Environment Variable
To fix the «bash: make: command not found» error in MINGW64, you can add the Make executable to your PATH environment variable. Here are the steps:
-
Open the MINGW64 terminal and type
which make
. This will show you the path of the Make executable, if it is installed on your system. -
Copy the path to the Make executable. For example, the path may be
/mingw64/bin/make
. -
Open the System Properties window by pressing the Windows key + Pause/Break, then click on «Advanced system settings».
-
Click on the «Environment Variables» button.
-
Under «System Variables», scroll down and find the «Path» variable. Click on «Edit».
-
Click on «New» and paste the path to the Make executable that you copied earlier.
-
Click «OK» to close all the windows.
-
Close and reopen the MINGW64 terminal.
You should now be able to use the Make command without getting the «bash: make: command not found» error. Here is an example Makefile to test:
all:
echo "Hello, World!"
Save this file as Makefile
in a new directory, then navigate to that directory in the terminal and run make
. You should see the message «Hello, World!» printed in the terminal.
Method 3: Use Full Path to Make Executable
To fix the «bash: make: command not found» error in MINGW64, one solution is to use the full path to the make executable. Here are the steps:
-
Find the path to the make executable by running the command
which make
. This will output the full path to the make executable, such as/usr/bin/make
. -
Use the full path to make in the build command. For example, instead of running
make build
, run/usr/bin/make build
.
Here is an example command to build a project using the full path to make:
By using the full path to make, you are explicitly telling the shell where to find the make executable, which can help avoid issues with the system’s PATH variable.