Skip to content
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

Windows setup thorw an error #13569

Open
yeshan333 opened this issue May 18, 2024 · 9 comments
Open

Windows setup thorw an error #13569

yeshan333 opened this issue May 18, 2024 · 9 comments

Comments

@yeshan333
Copy link

Elixir and Erlang/OTP versions

  • Erlang/OTP version is 26.2.5, install by vfox-erlang
  • Elixir windows installer: elixir-otp-26.exe

Operating system

windows

Current behavior

image

when I click elixir-otp-26.exe to install Elixir. then throw an exception:

Found existing Erlang/OTP installation at Elixir Setup Found existing Erlang/OTP installation at C:\Userslyeshan333\.version-foxicachelerlanglv-25.3.2.12lerlang-25.3.2.12\release but checking it exited with error:

Expected behavior

No errors are thrown during installation.

@josevalim
Copy link
Member

josevalim commented May 18, 2024

@wojtekmach, which check do we execute here? Maybe we can add the check we run in the error message?

@wojtekmach
Copy link
Member

The error is raised here: https://github.com/elixir-lang/elixir/blob/v1.16.2/lib/elixir/scripts/windows_installer/installer.nsi#L119

based on this check:

https://github.com/elixir-lang/elixir/blob/v1.16.2/lib/elixir/scripts/windows_installer/installer.nsi#L94:L96

It looks like you maybe have OTP 25 installed too so consider uninstalling it first. Though the installer should gracefully handle other installation.

@josevalim
Copy link
Member

@yeshan333 can you try executing the commands above in your Erlang installation? Does it work? What does it return?

@yeshan333
Copy link
Author

After I uninstalled OTP 25, the installer can work normally.

However, if I have multiple OTP versions installed on my machine at the same time, it seems that Elixir's installer cannot find them well.

And OTP 25 installation path exists in the environment variable:

1f42a2cb8e5685186bc8cf4414273bfe
@josevalim @wojtekmach

@wojtekmach
Copy link
Member

Thank you for checking, this is really helpful. What is the installer version, i.e. Elixir version, you used?

@yeshan333
Copy link
Author

Thank you for checking, this is really helpful. What is the installer version, i.e. Elixir version, you used?

installer version is elixir-otp-25.exe.

@wojtekmach
Copy link
Member

That's not enough information, which release (https://github.com/elixir-lang/elixir/releases) did you download the installer from?

@yeshan333
Copy link
Author

That's not enough information, which release (https://github.com/elixir-lang/elixir/releases) did you download the installer from?

this: https://github.com/elixir-lang/elixir/releases/download/v1.16.3/elixir-otp-25.exe

@simonmcconnell
Copy link

@yeshan333 in the meantime you can handle multiple versions using scoop

scoop install erlang@25.3.2.12
scoop install elixir@1.16.2-otp-25
scoop install elixir@1.16.3-otp-25 # becomes the current version
scoop reset elixir@1.16.2-otp-25 # change current version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants