By andrewddixon
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!
Accepted Answer
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:
asdf plugin-add elixir
asdf install elixir 1.12.2
Hope that this helps!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.