Bash make command not found windows

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.

CYGWIN INSTALL STEP

answered Nov 21, 2011 at 17:10

Mateusz's user avatar

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's user avatar

Ahmad

5,5718 gold badges41 silver badges57 bronze badges

answered Jan 28, 2011 at 13:07

neuro's user avatar

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:

  1. open cygwin setup again

  2. choose catagory on view tab

  3. fill «make» in search tab

  4. expand devel

  5. find «make: a GNU version of the ‘make’ ultility», click to install

  6. Done!

answered Jul 15, 2018 at 10:30

VietHuong's user avatar

VietHuongVietHuong

1891 silver badge5 bronze badges

Follow these steps:

  1. Go to the installer again
  2. Do the initial setup.
  3. Under library — go to devel.
  4. under devel scroll and find make.
  5. install all of library with name make.
  6. click next, will take some time to install.
  7. this will solve the problem.

answered Feb 10, 2017 at 18:45

Suvadeep panthy's user avatar

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

vicky sable's user avatar

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

صلي علي محمد - Atef Farouk's user avatar

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.io's user avatar

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:

  1. Goto the installer once again.
  2. Do the initial setup.
  3. Select all the libraries by clicking and selecting install (the one already installed will show reinstall, so don’t install them).
  4. Click next.
  5. The installation will take some time.

Guido Leenders's user avatar

answered Oct 14, 2016 at 6:42

Divyanshu Srivastava's user avatar

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

Achie1's user avatar

Achie1Achie1

3053 silver badges13 bronze badges

@rubenmedios

I try the system, but haven’t luck, the result is this

$ make
bash: make: command not found

I’m on Windows 10

Maykonn, yairEO, bfj5889, birkanalp, Jesse-Reyes, scozma, daniiel, acse-arh19, srisha03, Floydbene, and 6 more reacted with thumbs up emoji

@rubenmedios
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

@leouieda

@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?

@jandecaluwe

@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.

@42sol-eu

@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

@GabrielAdeyemi

If it is only to generate binary files, I use:

cmake —build .

@Patsjemoe

Hi,
make, cmake, mingw32-make….all of them give an error command not found…
any suggestions ?
thanks
regards
ludo

@Jesse-Reyes

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.

@Rattanpal1

Just add environment variable

C:\Program Files (x86)\GnuWin32\bin

Thats All.

Cheers,
Ranjit

@faizanurrahman

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.

WycliffDembe, tthuwng, robturnerovo, moshang-xc, fharing, johnwsmithv, SauravKarmakar, mihiretab-taye, YTNamenlos, nhlong2x, and 6 more reacted with thumbs up emoji
newguy, fyxz, amarashifar, JmLegacy, and mirjabbarbadalov reacted with thumbs down emoji
mihiretab-taye, megahound, and leoncarey reacted with rocket emoji

@WycliffDembe

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

@Komal7209

It’s still not working for me
15987913959289139432950128596921

@newguy

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.

@Sameer23185

  1. 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/).
  2. Extract it.
  3. Copy the contents inside \mingw64 folder (Do NOT overwrite or Replace any files).
  4. Restart GIT Bash. «make» command will start working for you now as it works on Linux systems.

@babita-web

It’s still not working for me
15987913959289139432950128596921

One suggestion to you, Instead of taking photo from phone you can take screenshot or use snipping tool.

@sabapathi20

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

@1basilisk

image
it says make not found

@kartheekDogga

image it says make not found

you must be on a 64 bit version

@mohdhaider07

image

Can you please tell me how I can resolve this error

@mohdhaider07

@josyb

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.

CYGWIN INSTALL STEP

answered Nov 21, 2011 at 17:10

Mateusz's user avatar

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's user avatar

Ahmad

5,5718 gold badges41 silver badges57 bronze badges

answered Jan 28, 2011 at 13:07

neuro's user avatar

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:

  1. open cygwin setup again

  2. choose catagory on view tab

  3. fill «make» in search tab

  4. expand devel

  5. find «make: a GNU version of the ‘make’ ultility», click to install

  6. Done!

answered Jul 15, 2018 at 10:30

VietHuong's user avatar

VietHuongVietHuong

1891 silver badge5 bronze badges

Follow these steps:

  1. Go to the installer again
  2. Do the initial setup.
  3. Under library — go to devel.
  4. under devel scroll and find make.
  5. install all of library with name make.
  6. click next, will take some time to install.
  7. this will solve the problem.

answered Feb 10, 2017 at 18:45

Suvadeep panthy's user avatar

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

vicky sable's user avatar

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

صلي علي محمد - Atef Farouk's user avatar

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.io's user avatar

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:

  1. Goto the installer once again.
  2. Do the initial setup.
  3. Select all the libraries by clicking and selecting install (the one already installed will show reinstall, so don’t install them).
  4. Click next.
  5. The installation will take some time.

Guido Leenders's user avatar

answered Oct 14, 2016 at 6:42

Divyanshu Srivastava's user avatar

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

Achie1's user avatar

Achie1Achie1

3053 silver badges13 bronze badges

  1. Solve bash: make: command not found in Cygwin via Installation
  2. Solve bash: make: command not found in Cygwin via apt-cyg

Solve Make Command Not Found on Cygwin

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.

make command not found

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.

  1. 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 setup file

  2. Select a Download Source and the same Root 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 installation type

    choose installation directory

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

    select local package directory

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

    choose download site

    progress

  5. Change the view tab to Full, search for make within the search field, and scroll to find make (highlighted) among the package list. Remember to double-click the Skip value to see the version.

    Also, you can select make-debuginfo to allow easy debugging mode. Select Next.

    select packages

  6. Check the Review and confirm changes screen to make sure make installs.

    review changes

  7. You should download progress like the image below.

    download progress

  8. The update installation is done, and now we will have the make utility available via the Cygwin Terminal.

    installation complete

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.

make

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.

make -v

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.

apt-cyg install make

apt-cyg install make complete

Now, let’s check if the operation was successful by checking the version of make.

make -v cyg

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.

apt-cyg -v

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:

  1. Open the MINGW64 terminal and run the following command to update the package list:
  1. Run the following command to install the Make utility:
  1. 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:

  1. 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.

  2. Copy the path to the Make executable. For example, the path may be /mingw64/bin/make.

  3. Open the System Properties window by pressing the Windows key + Pause/Break, then click on «Advanced system settings».

  4. Click on the «Environment Variables» button.

  5. Under «System Variables», scroll down and find the «Path» variable. Click on «Edit».

  6. Click on «New» and paste the path to the Make executable that you copied earlier.

  7. Click «OK» to close all the windows.

  8. 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:

  1. 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.

  2. 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.

  • Babytype 2000 скачать бесплатно для windows
  • Bad system config info при загрузке windows 10 как исправить через биос на компьютере
  • Bash for linux for windows
  • Bamboo cth 670 драйвер windows 10
  • Baseus bluetooth adapter драйвер windows 10