# Problem with install elixir and dependencies

**URL:** <https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665>\
**Category:** Questions\
**Tags:** troubleshooting\
**Created:** [February 21, 2018, 1:15pm UTC](https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665 "2018-02-21T13:15:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![magap](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@magap](https://forum.elixirforum.com/u/magap)\
**Post date:** [February 21, 2018, 1:15pm UTC](https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665/1 "2018-02-21T13:15:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aseigo](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/aseigo/32/10674_2.png) [@aseigo](https://forum.elixirforum.com/u/aseigo)\
**Post date:** [February 21, 2018, 1:34pm UTC](https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665/2 "2018-02-21T13:34:54Z")

</div>

> [@magap](#):
>
> elixir is already the newest version (1.1.0~0.20150708-1)

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 🙂

A much more convenient way to get Erlang and Elixir imho is to use [asdf](https://github.com/asdf-vm/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.

---

<div class="post-metadata">

**Author:** ![kokolegorille](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kokolegorille/32/4784_2.png) [@kokolegorille](https://forum.elixirforum.com/u/kokolegorille)\
**Post date:** [February 21, 2018, 1:40pm UTC](https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665/3 "2018-02-21T13:40:33Z")

</div>

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

```bash
$ 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

---

<div class="post-metadata">

**Author:** ![aseigo](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/aseigo/32/10674_2.png) [@aseigo](https://forum.elixirforum.com/u/aseigo)\
**Post date:** [February 21, 2018, 2:12pm UTC](https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665/4 "2018-02-21T14:12:17Z")

</div>

> [@kokolegorille](#):
>
> You can also specify -otp when installing elixir with asdf

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 …

---

<div class="post-metadata">

**Author:** ![sztosz](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sztosz/32/1251_2.png) [@sztosz](https://forum.elixirforum.com/u/sztosz)\
**Post date:** [February 21, 2018, 2:24pm UTC](https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665/5 "2018-02-21T14:24:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![magap](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@magap](https://forum.elixirforum.com/u/magap)\
**Post date:** [February 21, 2018, 2:28pm UTC](https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665/6 "2018-02-21T14:28:42Z")

</div>

Thanks @aseigo, it works now!

---

<div class="post-metadata">

**Author:** ![aseigo](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/aseigo/32/10674_2.png) [@aseigo](https://forum.elixirforum.com/u/aseigo)\
**Post date:** [February 21, 2018, 4:52pm UTC](https://forum.elixirforum.com/t/problem-with-install-elixir-and-dependencies/12665/7 "2018-02-21T16:52:39Z")

</div>

Yep, that works 🙂
