-
Notifications
You must be signed in to change notification settings - Fork 576
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
Error when compiling on Windows 7, missing module :cowboy_req #4
Comments
Thanks Tina! A couple questions: If you run, |
I ran
which worked, but the *.beam files are in test_plug/_build/shared/lib/cowboy/ebin/ebin Yes, there is a ebin directory UNDER the ebin directory for _build/shared/lib/cowboy, _build/shared/lib/cowlib, and _build/shared/lib/ranch and the beam files are in the nested (second) ebin directory This is only for Windows -- using Elixir 0.12.2-dev This does not happen on the Mac (I have both) and using Elixir 0.12.2-dev on both machines. I got some errors when I compiled Elixir 0.12.2-dev on Windows too. I compiled Elixir by clone the repo, and then running msys.bat (as Administrator) in the DevKit directory that came with RailsInstaller2.2.1 and running
I installed Erlang via the otp_win64_R16B02.exe installation Thanks for your attention. I can do anything testing you need. |
A little more information, I copied all the beam files from ebin/ebin directory to ebin directory
And that worked But if I just ran
again, I get the error: ** (File.Error) could not remove files and directories recursively from c:/apps/test_plug/_build/shared/lib/cowboy/ebin: file already exists |
It should be fixed in Elixir master. :) I think that you are already using master, so you just need to update your git checkout and do a Your reports have been a great help, thank you! |
Jose, thanks for the super-duper quick fix. It worked. No more nested ebin directories! I did have to compile cowboy explicitly. As in:
Thanks and thanks for Elixir -- I am enjoying it -- much better than Erlang, especially for a Rubyist like me. |
Glad to know! Thanks for your help! |
Hi,
I am encountering this error in Windows 7 with most current master on Elixir (VERSION=0.12.2-dev) .
I ran in the Windows Command Shell prompt:
modified mix.exs to have the following snippets:
then ran:
And get the following error:
== Compilation failed ==
Compilation failed on the following files:
The first failure is shown below...
== Compilation error on file lib/plug/adapters/cowboy/connection.ex ==
could not compile dependency plug, mix compile failed. You can recompile this dependency with
mix deps.compile plug
or update it withmix deps.update plug
** (CompileError) deps/plug/lib/plug/adapters/cowboy/connection.ex:5: module :cowboy_req is not loaded and could not be found
(elixir) src/elixir_exp.erl:95: :elixir_exp.expand/2
(stdlib) lists.erl:1339: :lists.mapfoldl/3
(stdlib) lists.erl:1340: :lists.mapfoldl/3
(elixir) src/elixir_exp.erl:43: :elixir_exp.expand/2
(elixir) src/elixir.erl:150: :elixir.quoted_to_erl/3
Thanks!
Tina
The text was updated successfully, but these errors were encountered: