magap

magap

Hi, I have big problem with install elixir.
I installed it, but when I want check version ‘elixir -v’, I receive communicate: ‘elixir 1.5.0 not installed’.

But when I put: ‘sudo apt-get install elixir’, I receive communicate:

Reading package lists… Done
Building dependency tree
Reading state information… Done
elixir is already the newest version (1.1.0~0.20150708-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So seems like I have elixir… But I haven’t.
Where can be a problem?

I use Ubuntu 16.

Thanks for any tips.

Showing Posts 1 to 6

aseigo

aseigo

Not sure exactly what has ended up on your system, but the package manager is installing v1.1.0 of Elixir. Which is 2.5 years old, which is ~1/3rd of the age of Elixir itself :slight_smile:

A much more convenient way to get Erlang and Elixir imho is to use asdf …

asdf plugin-add erlang 
asdf plugin-add elixir
asdf install erlang 20.1
asdf global erlang 20.1
asdf install elixir 1.6.0
asdf global elixir 1.6.0

Benefits being that you can have multiple versions installed, and it hardly matters which version of your OS you are using.

kokolegorille

kokolegorille

To complete @aseigo response, You can also specify -otp when installing elixir with asdf.

$ asdf install elixir 1.6.1-otp

...
$ elixir -v
Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.6.1 (compiled with OTP 20)

UPDATE: it should be -otp-20 as mentionned by @sztosz

aseigo

aseigo

Perhaps that depends on the system you are on? I don’t have such an option available here with asdf v 0.4.2 on Linux …

sztosz

sztosz

Oh, I think the correct syntax is asdf install elixir 1.6.1-otp-20 it works with asdf 0.4.1 installed from git.

magap

magap OP

Thanks @aseigo, it works now!

aseigo

aseigo

Yep, that works :slight_smile:

— All posts loaded —

Where Next? Top

Trending in Questions Top

axelson
One of my LiveView view’s has a very heavy javascript dependency so I want to avoid loading it for every page on the site, while still us...
New
yasoob
Hi all! I know that quite a few people use Phoenix LiveView but it is hard to get a more up-to-date list of folks/companies using it. I ...
New
Hellowman
Hello everyone! I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++. Does anyone ...
New
mandar1045
I load tested a plain Phoenix chat app backed by Postgres with 100 million messages in it, everything on default settings, to see what br...
New
caioaao
Hey, I know this has been discussed ad nauseum, but I couldn’t find a definitive answer or at least some consensus around this, so let me...
New
Liam_or
I don’t suppose you can lazy load a library depending on runtime data? For example if it’s a certain user they can lazy load ‘library A’ ...
New
ethan_caldwell
Hey everyone, I have been building a lightweight Phoenix backend aimed at backing up and synchronizing user profiles across mobile device...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
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
PJUllrich
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
akoutmos
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New

Latest on Elixir Forum

Elixir Forum ❯

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews