Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows install issue #380

Open
piercemcgeough opened this issue Oct 14, 2014 · 9 comments
Open

Windows install issue #380

piercemcgeough opened this issue Oct 14, 2014 · 9 comments

Comments

@piercemcgeough
Copy link

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?

@itguy614
Copy link

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

@piercemcgeough
Copy link
Author

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

@itguy614
Copy link

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

@Hamdiakoguz
Copy link

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

@dpa99c
Copy link

dpa99c commented Jan 18, 2016

@Hamdiakoguz Thanks, that worked perfectly for me

@JonDotsoy
Copy link

@Hamdiakoguz Thanks.

@dsphoebe
Copy link

@Hamdiakoguz Thanks

@WizX20
Copy link

WizX20 commented Feb 7, 2018

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

@YounesGhanem
Copy link

The problem remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants