Problems running mix on Windows: Segmentation fault

Hi everyone,

I am trying to run Elixir on Windows 11 with Erlang/OTP 28.

After installation, everything works fine at the beginning. But after some time, I get problems:

  • In Windows Command Prompt, when I run:
    mix help or mix phx.server
    nothing happens (no output).

  • In Git Bash, I get:
    Segmentation fault

Does anyone have an idea what could cause this problem and how to fix it?

Thanks in advance.

I would try reinstalling Erlang and making sure you have a recent vcredist installed.

What method did you use to install it?

Could you supply a few more details?

1.) Are you running under WSL or at a Windows Command Prompt?

2.) If it worked to start with and no longer works then have you changed your versions of anything?

3.) Exactly which version of Elixir are you working with?

Git Bash is likely to be Cygwin so I’m not surprised it’s not working. Try things under WSL and see if they work there or not.

The problem was the C++ Redistributable installed with Visual Studio 2022 Community Edition.

I uninstalled the C++ Redistributable and then installed a new version using the Erlang installer for Windows. Now everything works perfectly.

Problem solved, thanks for supporting me