Elixir: Why I can't install elixir with erlang 23+ on FreeBSD

Created on 24 Sep 2020  路  4Comments  路  Source: elixir-lang/elixir

Trying install elixir on __FreeBSD 12.1__, but I couldn't manage to install it with __Erlang 23+__.
I used pkg and also tried to make install from /usr/ports/lang/elixir but the same, it always install with __Erlang 21__.

Screen Shot 2020-09-24 at 21 23 18

Because I develop with __Elixir 1.10.4__ with __Erlang 23.1__ on my local machine, and I doubt maybe I will face some issues when I recompile it on my __FreeBSD__ server.

Most helpful comment

@alaadahmed I have used FreeBSD before, so here goes some useful links:

  1. erlang makefile in lang port
  2. elixir makefile in lang port

(those 2 should give you answer about current FreeBSD support)

  1. similar thread on elixirforum.com
  2. asdf version manager I recommend and FreeBSD issue confirms that asdf works on FreeBSD
  3. erlang installation guide for a list of dependencies before you start to use version manager

As said if you have some problems during installation feel free to create a post on Elixir Forum.

All 4 comments

Hi @alaadahmed ! I recommend reaching out to Elixir Forum (or similar) for support because this seems to be a FreeBSD issue in particular. Maybe you can explicitly ask it to install Erlang before? We don鈥檛 maintain the Erlang packages for FreeBSD so it is not an area we have expertise with. Thanks!

@alaadahmed I have used FreeBSD before, so here goes some useful links:

  1. erlang makefile in lang port
  2. elixir makefile in lang port

(those 2 should give you answer about current FreeBSD support)

  1. similar thread on elixirforum.com
  2. asdf version manager I recommend and FreeBSD issue confirms that asdf works on FreeBSD
  3. erlang installation guide for a list of dependencies before you start to use version manager

As said if you have some problems during installation feel free to create a post on Elixir Forum.

Thanks you @Eiji7
I already checked these two specific files, problem is the one of Erlang
You can't install Erlang lang 23+, but you can install Erlang-Runtime23
and Elixir needs Erlang itself.
I mean on FreeBSD ports, the highest version of erlang __lang__ is 21+, but __runtime__ is 23+

Here is the MakeFile for erlang lang port 馃様
Screen Shot 2020-09-25 at 00 15 14

These are all available Erlangs for FreeBSD
Screen Shot 2020-09-25 at 00 24 51

Here is the MakeFile for Elixir, no problem with it, it specifies erlang dep is >= 21+, problem is to find it in FreeBSD ports 馃槄
Screen Shot 2020-09-25 at 00 15 47

I will give asdf a try to see what I can do with it about erlang.

@alaadahmed just install the elrlang-runtime23 package and then adjust your PATH to include /usr/local/lib/erlang23/bin/

The default package in FreeBSD is still at OTP21 because there is other software in the tree that requires Erlang and doesn't work with OTP22+, so they've kept the default at OTP21 for safety.

Was this page helpful?
0 / 5 - 0 ratings