dokuzbir
How to change elixir compiled OTP version
I have elixir 1.6.1 installed on my machine. But elixir -v puts that
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:10] [hipe] [kernel-poll:false]
Elixir 1.6.1 (compiled with OTP 19)
I tried reinstall elixir but still OTP 19. How can i change compiled otp version ?
Marked As Solved
ericmj
The builds we provide are documented here GitHub - hexpm/bob: The Builder. We precompile against all supported OTP versions, by default we provide the oldest version because it ensures maximum compatibility, but you can select any version. This is what asdf uses when you run asdf install elixir 1.6.6-otp-21
Also Liked
dokuzbir
I found, default elixir compiled with 19. Beacuse of asdf i saw Elixir 1.6.1 (compiled with OTP 20)
`
NobbZ
Well, on my system (arch linux) it gives OTP 20, Elixir 1.6.5 (with OTP 20).
So you need to be more specific about which Operating System/Distribution you are talking about.
But in general, the process depends on your distribution or the third party maintainer of the repository.
If you want bleeding edge, either switch to a bleeding edge distro (such as Gentoo or Arch, but even there it sometimes takes a week or two), use an environment manager like asdf or compile from source.
For the last two items the usual considerations about not using the distros package manager apply of course.
michallepicki
Using asdf you can asdf install elixir 1.6.6-otp-21 (or use other otp version suffix)







