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

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
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
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New

Other popular topics Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42158 114
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29703 241
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
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
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New

We're in Beta

About us Mission Statement