You need to have C:\Program Files\Git\cmd in your path. Make sure it is there, start a new cmd prompt, type git --version.
I'm trying to install vim with git per the [websites instructions](https://www.vim.org/git.php) and when I try to run "make", git returns "bash: make: command not found". I found a [thread](https://stackoverflow.com/questions/36770716/mingw64-make-build-error-bash-make-command-not-found) about it on stack overflow saying to install and use either chocolatey or ezwinports but I cant get it to work. Can someone help me out please. Its probably something simple I'm doing wrong but I cant seem to figure it out.
You need to have C:\Program Files\Git\cmd in your path. Make sure it is there, start a new cmd prompt, type git --version.
As LaGrandMere explained, it's because git is not in your path. Instead of downloading and installing git, an easier alternative might be to run the cygwin setup.exe, and select git there. It will go into a directory that's already in your path (/usr/bin) and you will be able to run it from a bash prompt.
The one you installed works with the explorer, but that doesn't require the command to be in the path.
go - MINGW64 "make build" error: "bash: make: command not found" - Stack Overflow
make command not found
Windows 10, Git Bash - bash: git: command not found - Stack Overflow
Any idea for how to run "make" commands in windows
You can also use chocolatey to install it:
Copychoco install make
Here's the package.
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.
Go to ezwinports, https://sourceforge.net/projects/ezwinports/files/
Download make-4.2.1-without-guile-w32-bin.zip (get the version without guile)
- Extract zip
- Copy the contents to C:\ProgramFiles\Git\mingw64\ merging the folders, but do NOT overwrite/replace any exisiting files.
You can also use Chocolatey.
Having it installed, just run:
choco install make
When it finishes, it is installed and available in Git for Bash / MinGW.
There are two versions of Git that you are likely to be using - the msysgit distribution or Cygwin.
Installing Additional Utilities For Cygwin
Although you might have only installed Git as a part of your Cygwin install (if you used Cygwin), Cygwin has a program called setup.exe which you can use to add packages. Essentially, all you have to do is run setup.exe and pick out what programs you want installed when you get to the Select Packages window. The introduction here provides a good overview with images that detail the process.
Cygwin's installer is smart enough to figure out that you have a preexisting installation, and it will add packages to your installation (instead of nuking it and starting over).
MSYS
The other version of Git you are probably using (if not Cygwin) is msysgit. Because msysgit installs a minimal Unix environment which is not really compatible with MinGW, you'll end up having to install the MinGW suite beside msysgit. The MinGW Getting Started page gives a detailed overview on how to go about getting MinGW installed - since I have no experience with MinGW personally, all I can really do is refer you to their instructions.
You'll then have to migrate your msysgit installation into MinGW. This can be accomplished by doing the following (taken from here). After the following sequence is done, MinGW should find your Git installation.
cd GITDIR # Where GITDIR is wherever inside Program Files you put Git
cp bin/git* /MINGW/bin # Where MINGW is wherever you put MinGW
cp -r libexec/git* /MINGW/libexec
cp -r share/git* /MINGW/share
With recent Git for Windows installations, installing additional shell scripts and programs is pretty easy.
Simply put the executables into C:\Program Files\Git\usr\bin (%ProgramFiles%\Git\usr\bin).
I recommend installing git using chocolatey choco install git --params "/GitAndUnixToolsOnPath /WindowsTerminal", because you can update git (and all other tools installed with chocolatey) by executing choco upgrade all.
Example for git-fresh
Copy the file git-fresh to C:\Program Files\Git\usr\bin.
Example for adr-tools
- Download a zip package from the releases page
- Unzip the package
- Copy everything from
src/intoC:\Program Files\Git\usr\bin
Hi all. I'm trying to install one of those local A.i programs. Using Manjaro KDE. I have the install command from github, but here is the output from the terminal:
[jersten@LinuxRig ~]$ git clone https://github.com/fredi-python/llama.cpp.git && cd llama.cpp && make -j && cd models && wget -c https://huggingface.co/CRD716/ggml-vicuna-1.1-quantized/resolve/main/ggml-vicuna-13B-1.1-q5_1.bin
Cloning into 'llama.cpp'...
remote: Enumerating objects: 3411, done.
remote: Counting objects: 100% (3411/3411), done.
remote: Compressing objects: 100% (1107/1107), done.
remote: Total 3411 (delta 2303), reused 3309 (delta 2267), pack-reused 0
Receiving objects: 100% (3411/3411), 3.05 MiB | 5.25 MiB/s, done.
Resolving deltas: 100% (2303/2303), done.
bash: make: command not found
[jersten@LinuxRig llama.cpp]$
Looks like everything was going well for awhile there. Any idea why I couldn't complete the installation? Thank you
Edit: so I've gotten around the issue by just using CMDer instead of Git Bash and that's working fine apparently
So the past three weeks I've been using git through git bash pretty extensively. Everything was working well but today I opened up git bash and tried to clone a repo but it keeps saying bash: git: command not found.
I tried reinstalling git and git bash but the same thing is happening. I didn't change anything and am not sure what is causing this.
Does anyone know?