LionelHutz

LionelHutz

Newly installed Elixir version on Windows not found... Defaults to old version previously installed via chocolatey?

I’m still relatively new to Elixir and programming in general, so apologies if this is a basic mistake.

I am trying to upgrade to Elixir 1.13.2 (and then also will upgrade Phoenix and LiveView) on Windows.

N.B. - I’ve tried this on two different Windows 10 machines, both had Elixir originally installed via chocolatey. Both machines got the same result when trying to install with the web installer, as described below.

Previously, I used chocolatey as recommended - but their latest version (the one sat on my machine) is well out of date - 1.11.2.

So, instead, I used the web installer for Windows

Clicked through the recommended settings, and it seemed to have installed fine. And indeed, the little Erlang-Elixir emulator app is present, and when you run it, it shows Elixer v. 1.13.2.

But in my Windows PowerShell, elixir -v still says 1.11.2?? I tried uninstalling Elixir via chocolatey, and reinstalling via the web installer. This time, PowerShell doesn’t detect Elixir at all? Other attempts to coax the elixir version out of it, or use it all say that the latest version is that which chocolatey installed ages ago.

So, it seems to be using whatever chocolatey has done as the law, and ignoring whatever the web installer has done, even though it does seem to have installed something - put all the files on the system, the emulator app works, etc.

I must be doing something wrong/not understanding a basic thing about installing things, since it’s happened on two separate Windows machines?

But I’ve googled a lot, and come up with nothing. In the meantime, I’m totally stuck and can’t move forward.

Any help you could give thus would really be appreciated!

Thanks very much, indeed

First Post!

LionelHutz

LionelHutz

Looking at the sequences in the installer, it seems to want to install a folder in C:\Program Files called erl10.7

There is already a folder there called erl10.5, which dates back to 2019. I’m guessing this was put there by chocolatey (but can’t be sure)? If I delete erl10.5 and do elixir --version, it throws this error:

Cannot find file at ‘c:\program files/erl10.5/erts-10.5/bin/erl.exe’ (c:\program files\erl10.5\erts-10.5\bin\erl.exe). This usually indicates a missing or moved file.

Even though erl10.7 is there - if that’s any further clue/confirmation as to what’s happening. Thanks again!

Where Next?

Popular in Questions Top

openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
Fl4m3Ph03n1x
Background Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
New
gonzofish
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
idi527
I’ve been re-reading swift book again and noticed that multiline strings there don’t have a trailing line break, unlike in elixir iex(2)...
New

Other popular topics Top

chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement