dokuzbir

dokuzbir

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 ?

Showing Posts 1 to 10

dokuzbir

dokuzbir OP

I found, default elixir compiled with 19. Beacuse of asdf i saw Elixir 1.6.1 (compiled with OTP 20)

`

AlchemistCamp

AlchemistCamp

Following instructions on Installing Elixir - The Elixir programming language will now get you:

  • Erlang/OTP 21
  • Elixir 1.6.5 (compiled with OTP 19)

I’m curious about the process for updating what goes into the package manager. The versions do inch up, but the version of Elixir is often compiled with an older version of Erlang than the one installed.

NobbZ

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.

AlchemistCamp

AlchemistCamp

Right you are! I was speaking of Ubuntu 16.04/17.04.

Just checking on my Windows machine now, I’m seeing Erlang/OTP 20 / Elixir 1.6.5 (compiled with OTP 19).

NobbZ

NobbZ

For those, you need to get in touch with @ErlangSolutions.

Are you using choco to install, a POSIX wrappers package manager or the prebuilt package? The former is maintained by @Onor.io and wraps the elixir prebuilt package. POSIX wrappers packages are in a similar situation as linux packages are, find the maintainer and ask them.

And that prebuilt package is actually built by the elixir team, @ericmj maintains the infrastructure AFAIK. But as far as I know, each built is done on the lowest supported erlang version, to maintain runtime compatibility, as you can safely run a OTP19 binary on a OTP 20 system, but not the other way round.

As far as I know, there are prebuilt packages available via the build server that match higher versions of OTP. They are not official though, and I can’t remember how to put together the URL to download them. Also I’m not sure if the built server has already been updated for OTP 21.

So if you really want to use the latest combination of elixir and ERTS possible, you need to use an environment manager, build from source, or use an operating system that generally is more bleeding edge.

AlchemistCamp

AlchemistCamp

I use apt-get.

On the Windows side, I prefer to avoid choco, though I’ve used it in the past. I go with the first option of the web installer (as well as WSL with Ubuntu for using things like Edeliver or Pry).

To be clear, I’m not concerned at all about not being on the bleeding edge. I just find it interesting that the version of Erlang is ahead of what’s used to compile Elixir.

michallepicki

michallepicki

Using asdf you can asdf install elixir 1.6.6-otp-21 (or use other otp version suffix)

NobbZ

NobbZ

I prefer to avoid choco

Why? I like the idea of establishing a package manager for windows. Some of chocos concepts have some issues though, but hey, thats in the nature of windows :wink:

I just find it interesting that the version of Erlang is ahead of what’s used to compile Elixir.

Yeah, as I said already, for the official prebuilt archive, this is on purpose for maximum compatibility.

For the web-installer and the choco installer (which only wrap the prebuilt archive) the same is true.

Gentoo will always be built with the OTP available at the system of elixirs install time (as its a source distribution).

Arch will be built with the most current erlang that is available when the package is initially built.

I have no clue about why or how this is done on other distributions, but I think its mainly because no-one cares or even knows that this might be important for someone. So basically the easiest thing is done and the package simply wraps the prebuilt archive.

ericmj

ericmj

Elixir Core Team

The builds we provide are documented here GitHub - hexpm/bob: The Builder · GitHub. 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

NobbZ

NobbZ

I remember you having said once something along the lines that the versions compiled with other OTPs weren’t officially supported, or was that only targeted at nightly builds made by bob?

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews