dimitarvp

dimitarvp

I mean OK, it’s your machine but let me remind you that you have so far refused to use:

  • Docker
  • WSL2
  • msys2
  • mingw + UNIX tools

At this point I’m certain you’d refuse to try Cygwin as well.

It’s a fact of life that Windows is not exactly an universal developer-friendly OS and by refusing to use the convenient workarounds you’re making your work more difficult than it has to be.

Let us know if you make it work. It would be enlightening.

0
Post #31
SunPoke04

SunPoke04 OP

I am using mingw though, I don’t like msys2.

Also reformatting the pc seems to fix it? I have no idea why it didn’t work previously.

It’s a fact of life that Windows is not exactly an universal developer-friendly OS and by refusing to use the convenient workarounds you’re making your work more difficult than it has to be.

For me it’s worse in linux, but that’s an opinion, same as yours.

0
Post #32
dimitarvp

dimitarvp

That’s a fairly heavy hammer to swing to fix one problem but hey, glad you made it work! :smiley:

:person_shrugging:

If you are happy with the result then that’s all that matters for this thread.

0
Post #33
gitkinder

gitkinder

I also faced similar issue on windows. I did not use installer. Downloaded zip file and extracted them for erlang, elixir and gleam.

I could not get phoenix sample app to work.

Was failing with.

**(Mix) Could not compile dependency :telemetry, "escript rebar3 bare compile --paths _build/dev/lib/*/ebin" command failed. Errors may have been logged above. 
You can recompile this dependency with "mix deps.compile telemetry --force" or clean it with "mix deps.clean telemetry"

Fix: Change the following files to have correct path.

C:\Programs\erl.27_1_2\bin>type erl.ini
[erlang]
Bindir=C:\\Programs\\erl.27_1_2\\erts-15.1.2\\bin
Progname=erl
Rootdir=C:\\Programs\\erl.27_1_2

C:\Programs\erl.27_1_2\erts-15.1.2\bin>type erl.ini
[erlang]
Bindir=C:\\Programs\\erl.27_1_2\\erts-15.1.2\\bin
Progname=erl
Rootdir=C:\\Programs\\erl.27_1_2

Not sure whether installation with scoop also has similar issues.
Hope this is useful for somebody else.

1
Post #34
wojtekmach

wojtekmach

Hex Core Team

Deleting this erl.ini should work too: ci: Add otp_win.zip to releases by wojtekmach · Pull Request #8729 · erlang/otp · GitHub

1
Post #35
Morotai

Morotai

hey @wojtekmach, sorry I missed this and now that I need help I found it gain. :slight_smile: Basically trying to compile a project and running into this very same thing. Did a global search for erl.ini and deleted all the entries I found (probably not what I should have done). Installed and download several different ways rebar3. thanks.
C:\Users\rafae\source\vc_demo>mix deps.compile telemetry --force
Could not load module C:\Users\wojtek\otp\erts-15.1.2\bin\erlexec.dll.
** (Mix) Could not compile dependency :telemetry, “escript.exe “c:/Users/rafae/.mix/elixir/1-17/rebar3” bare compile --paths c:/Users/rafae/source/vc_demo/_build/dev/lib/*/ebin” command failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile telemetry --force”, update it with “mix deps.update telemetry” or clean it with “mix deps.clean telemetry”

0
Post #36
wojtekmach

wojtekmach

Hex Core Team

there’s gotta be that erl.ini somewhere still, that’s the only known to me explanation. What you can also do is install elixir again: Installing Elixir - The Elixir programming language

1
Post #37
dimitarvp

dimitarvp

Corollary to your issue, you could install Everything from VoidTools and task it with finding erl.ini on your local disk(s) to make double sure.

It’s times better than Windows Explorer’s search.

0
Post #38
Morotai

Morotai

Somewhere between re-installing and updating path stuff it looks like I’m back in business. thanks again.

1
Post #39
odyright

odyright

Hello there! Thanks @wojtekmach for pointing us to the right direction. Deleting erl.ini works.

image
image356×788 18.5 KB

image

1
Post #40