Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run "make" command in gitbash in windows?

Can anyone help me to run Makefile in windows using "make" command. When I try to run from git bash, am getting following error,

$ make build bash: make: command not found

$ make deploy bash: make: command not found

Is there anyway to install this in gitbash or something or is there any other windows tool I need to use?

like image 210
veeresh patil Avatar asked Mar 01 '23 17:03

veeresh patil


2 Answers

You can also use chocolatey to install it:

choco install make

Here's the package.

like image 153
Ana Franco Avatar answered Mar 05 '23 17:03

Ana Franco


Sounds like Make isn't in your git-bash's path.

A quick search shows this guide, which suggests the following steps:

  • Go to ezwinports.
  • Download make-4.1-2-without-guile-w32-bin.zip (get the version without guile).
  • Extract zip.
  • Copy the contents to your Git\mingw64\ merging the folders, but do NOT overwrite/replace any existing files.

The guide is several years old. It may behoove you to read some of the comments before taking action.

like image 40
samuei Avatar answered Mar 05 '23 17:03

samuei