gitflow icon indicating copy to clipboard operation
gitflow copied to clipboard

Windows install issue

Open piercemcgeough opened this issue 11 years ago • 9 comments
trafficstars

I have followed the instructions here https://github.com/nvie/gitflow/wiki/Windows for Cygwin. I made sure the git, util-linux and wget are all installed, I also ran the "$'\r': command not found" code but when I run git flow init i get the following error

/usr/local/bin/gitflow-shFlags: line 1: shFlags/src/shflags: No such file or directory /usr/local/bin/git-flow: line 85: DEFINE_boolean: command not found /usr/local/bin/git-flow: line 88: FLAGS: command not found fatal: 'flow' appears to be a git command, but we were not able to execute it. Maybe git-flow is broken?

piercemcgeough avatar Oct 14 '14 12:10 piercemcgeough

When you do a clone, be sure to include the --recursiv option otherwise the shflags submodule will not be pulled.

itguy614 avatar Oct 14 '14 13:10 itguy614

I installed Cygwin with the packages needed.

Using Cygwin I ran the command: $ wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash

I then cd into /cygdrive/c/Users/Pierce/Desktop/mai After running git flow init I get these lines /usr/local/bin/gitflow-shFlags: line 1: shFlags/src/shflags: No such file or directory /usr/local/bin/git-flow: line 85: DEFINE_boolean: command not found /usr/local/bin/git-flow: line 88: FLAGS: command not found fatal: 'flow' appears to be a git command, but we were not able to execute it. Maybe git-flow is broken?

I then change content in the gitflow-shFlags file from "shFlags/src/shflags" to "gitflow-shFlags". I then tried to run the git flow init again and this time it gets hung up and dies unexpectedly

piercemcgeough avatar Oct 14 '14 13:10 piercemcgeough

Not sure about that one. Check out this fork of GitFlow. It is more up to date and is under current development. I have made the switch and wouldn't go back.

https://github.com/petervanderdoes/gitflow

itguy614 avatar Oct 17 '14 17:10 itguy614

These steps finally worked for me.

$ wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash

$ cd gitflow
$ git submodule init
$ git submodule update

$ cp shFlags/src/shflags to /usr/local/bin/gitflow-shFlags

Hamdiakoguz avatar Jan 16 '16 15:01 Hamdiakoguz

@Hamdiakoguz Thanks, that worked perfectly for me

dpa99c avatar Jan 18 '16 09:01 dpa99c

@Hamdiakoguz Thanks.

JonDotsoy avatar Jan 21 '16 15:01 JonDotsoy

@Hamdiakoguz Thanks

dsphoebe avatar Feb 17 '16 06:02 dsphoebe

Does not work for me. I'm starting to think it has something to do with the latest windows updates? It started for me when I installed KB4074595 and KB4023057.

  • I also tried installed an older version of git, did not make a difference.
  • cp shFlags/src/shflags to /usr/local/bin/gitflow-shFlags gives the same message for me: no such file or directory.
  • Tried overwriting the file via windows explorer (from C:\tools\cygwin\usr\local\bin to C:\Program Files\Git\usr\bin) and then did a full system reboot: did not work

WizX20 avatar Feb 07 '18 11:02 WizX20

The problem remains.

YounesGhanem avatar Jul 13 '21 13:07 YounesGhanem