etls icon indicating copy to clipboard operation
etls copied to clipboard

Can't compile under Windows

Open ghost opened this issue 9 years ago • 3 comments

I have installed all the dependencies and they are all accessible from the cmd. I tried with different shells (cmd/Git-bash/Git-sh), cygwin, minGW, Visual Studio Tools, nothing seems to work.

Is it possible for someone to try and compile it under Windows 10 and if successful, please report what needs to be done? Thank you!

C:\username\Elixir\test1>mix compile
==> etls (compile)
A subdirectory or file -p already exists.
Error occurred while processing: -p.
A subdirectory or file _build already exists.
Error occurred while processing: _build.
ERROR: Command [compile] failed!
** (Mix) Could not compile dependency :etls, "escript.exe "c:/Users/username/.mix/rebar" compile skip_deps=true deps_dir="c:/username/Elixir/test1/_build/dev/lib"" command failed. You can recompile this dependency
with "mix deps.compile etls", update it with "mix deps.update etls" or clean it with "mix deps.clean etls"

ghost avatar Jan 25 '17 15:01 ghost

I've never built Rebar projects on Windows so I unfortunately have no experience with it. The issue here is that mkdir that Rebar calls has no flag -p. You state that you've tried different shells with no effect, so I assume that Rebar sidesteps the local environment uses system shell (cmd?).

kzemek avatar Jan 26 '17 11:01 kzemek

Unfortunately I'm just a beginner, so if someone with experience can take a look at this it would be great.

ghost avatar Jan 26 '17 13:01 ghost

@onwarion Could you try to reproduce it on master now? I've changed scripts in rebar.config so that they should work on Windows; I'm not sure about other parts of the build, though. What kind of environment are you normally using for Erlang projects compilation under Windows?

kzemek avatar Feb 10 '17 17:02 kzemek