Flow is not officially supported on Windows. So I’m trying to set it up on my machine.
Flow uses OCaml; it is easy to get OCaml on Windows with Cygwin. Even the Cygwin setup has option to select OCaml.
First git clone flow from their source: https://github.com/facebook/flow using
git clone https://github.com/facebook/flow.git
Failed with error: ‘i686-w64-mingw32-gcc’ is not recognized as an internal or external command,
operable program or batch file.
Let us try by installing it
apt-cyg install mingw64-i686-gcc-g++
Retried make and got error: fatal error: gelf.h: No such file or directory
#include
Try installing libelf
apt-cyg install libelf-devel
no luck yet.
apt-cyg install ELFIO
Yet after not getting any success, I tried installing the sources for lib-elf as well.
Not working.
Uninstall OCaml and try using Cygwin’s OCaml
make
looks better, but still getting err: can’t find sys/syscall.h
hack (part of hhvm/hphp) is system dependent. probably it’ll take more time getting it done.
Update: Right now there is an unanswered question on Quora about it; if you find a solution, please post.
https://flowtype.org/blog/2016/08/01/Windows-Support.html
It took 2 years but now you can just download and install…
https://github.com/facebook/flow/issues/6
LikeLike
That is cool! Thanks.
LikeLike
Yeah, you made a good attempt. Might even have worked if you had the new Bash shell in Windows 10 available to you back then.
There are 250 comments on Issue #6 and a lot of people tried all all sorts of things.
I had a short discussion going on the issue which is why I came across your page:
http://www.neowin.net/forum/topic/1307092-starting-a-new-list-on-reactjs-web-programming-any-help-appreciated/
LikeLike