Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Can't compile under Windows #13

Open
ghost opened this issue Jan 25, 2017 · 3 comments
Open

Can't compile under Windows #13

ghost opened this issue Jan 25, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 25, 2017

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"
@kzemek
Copy link
Owner

kzemek commented Jan 26, 2017

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?).

@ghost
Copy link
Author

ghost commented Jan 26, 2017

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

@kzemek
Copy link
Owner

kzemek commented Feb 10, 2017

@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?

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

No branches or pull requests

1 participant