smlnl

smlnl

Hello everyone,

I’ve got a problem that I cannot rectify.

I work on WSL - Windows 10, Ubuntu 20.04 LTS and elixir version is at 1.9.1. When I try to update the elixir to the latest version, I see the message saying something like “elixir is on the latest version”.

Do you guys have any experience around this ?

Any help would be appreciated.
Thanks,

First 10 of 12 Posts Switch mode

dimitarvp

dimitarvp

There’s no mystery, Ubuntu 20.04 LTS is quite old (as the name says: Long Term Release) so the Elixir version is quite conservatively set there: Ubuntu – Error

I suggest you use asdf if you want to install higher versions, which is what almost everyone is doing anyway. :slight_smile:

ruslandoga

ruslandoga

You can install a newer version by following the installation guide for Ubuntu or Debian on Installing Elixir - The Elixir programming language

eksperimental

eksperimental

not really. This is the latest version available from the official packages.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Release:	20.04
Codename:	focal

$ elixir -v
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit]

Elixir 1.12.2 (compiled with Erlang/OTP 22)
eksperimental

eksperimental

Did you update the repositories listings by running sudo apt update

I have updated them yesterday and the latest versions are OTP24/Elixir 12.2

odix67

odix67

according to the packages index, the current version of elixir is 1.9.1.dfsg-1.3, there is no newer version in focal-update, nor in focal-backports. Your installed version (OTP24/Elixir 12.2) seems to come from elsewhere.

Sebb

Sebb

I was looking for a guide to help get started and found this one:

But another guide here: Installation — nerves v1.14.3 in addition says

It is important to update the versions of hex and rebar used by Elixir, even if you already had Elixir installed.

mix local.hex
mix local.rebar

Is this needed or not?

eksperimental

eksperimental

Correct.
Now that i check I installed it with the following commands:

wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
sudo apt update
sudo apt install esl-erlang
sudo apt install elixir
dimitarvp

dimitarvp

I think OP was looking for a solution involving apt-get but if they can utilize your method then that’s a win as well.

eksperimental

eksperimental

It is a solution that involves apt,
what is does is to update the repositories.
you can do it manually, as described in Erlang and Elixir Packages Download - Erlang Solutions
I guess both do the same: add the Erlang solutions repository to your registry.

dimitarvp

dimitarvp

Hm, good point. I haven’t worked with Debian for a long time and I forgot that you can install meta .deb-s, namely those that can update the repos. I got used to Ubuntu’s PPAs I suppose. :face_with_hand_over_mouth:

Thanks for the reminder. :slight_smile:

(On a related note, I am just about to give up using normal package managers. Most high-profile distros do a marvelous job but there are always some dark corners (like compiling Erlang with wxWidgets) and I might just go for Dockerized installs by default because the whole thing can get pretty tiring sometimes.)

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement