I’m building an app using Elixir and one of the things I want to do is keep the versions of tools the same between my development environment and the Digital Ocean server. But, I’m having a hard time understanding why the DO server is running Elixir 1.13.4.
My server is the latest LTS:
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-47-generic x86_64)
The Elixir Version is shown as 1.13.4:
$ elixir --version
Erlang/OTP 25 [erts-13.0.4] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [jit:ns]
Elixir 1.13.4 (compiled with Erlang/OTP 25)
But, my development laptop shows elixir version 1.12.2:
$ elixir --version
Erlang/OTP 24 [erts-12.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]
Elixir 1.12.2 (compiled with Erlang/OTP 24)
The “correct” version should be 1.12.2 according to the official Ubuntu site:
https://packages.ubuntu.com/jammy/interpreters/elixir
Any idea how to resolve this? I’d like to use 1.12.2 as 1.13.4 seems to still be a bit bleeding edge but just understanding it would help.
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
The package repositories for some distributions are kept more up to date than others. Each distribution has different maintainers and release cycles.
However, what you could do, is rather than relying on the default version of Elixir that comes with your OS, I could suggest using the following tool:
https://github.com/asdf-vm/asdf#setup
This is a version manager for Elixir and will let you install and switch to specific versions:
Hope that this helps!
Best,
Bobby