Error loading function 'Elixir.Calendar.ISO'...
Hi there. I am trying to install Pleroma on my Raspberry Pi running Osmc (based on Raspbian, based on debian). I keep getting the following error when running mix pleroma.instance gen as per instructions from the Installing on Debian Based Distributions manual:
...
Generated plug_cowboy app
==> phoenix
Compiling 67 files (.ex)
19:36:37.749 [error] beam/beam_load.c(2314): Error loading function 'Elixir.Calendar.ISO':from_unix/2: op i_plus q x p x:
no specific operation found
19:36:37.753 [error] Loading of /var/lib/pleroma/.asdf/installs/elixir/1.8.2/bin/../lib/elixir/ebin/Elixir.Calendar.ISO.beam failed: :badfile
Compiling lib/phoenix/endpoint/render_errors.ex (it's taking more than 15s)
Compiling lib/phoenix/socket/serializers/v1_json_serializer.ex (it's taking more than 15s)
Compiling lib/mix/tasks/phx.gen.embedded.ex (it's taking more than 15s)
Compiling lib/phoenix/endpoint/cowboy_adapter.ex (it's taking more than 15s)
Compiling lib/phoenix/token.ex (it's taking more than 15s)
Compiling lib/phoenix/controller.ex (it's taking more than 15s)
19:36:46.321 [error] beam/beam_load.c(2314): Error loading function 'Elixir.Calendar.ISO':from_unix/2: op i_plus q x p x:
no specific operation found
19:36:46.321 [error] Loading of /var/lib/pleroma/.asdf/installs/elixir/1.8.2/bin/../lib/elixir/ebin/Elixir.Calendar.ISO.beam failed: :badfile
== Compilation error in file lib/mix/phoenix/schema.ex ==
** (UndefinedFunctionError) function Calendar.ISO.parse_microsecond/1 is undefined (module Calendar.ISO is not available)
(elixir) Calendar.ISO.parse_microsecond("")
(elixir) lib/calendar/naive_datetime.ex:578: NaiveDateTime.raw_from_iso8601/2
(elixir) lib/calendar/naive_datetime.ex:609: NaiveDateTime.from_iso8601!/2
(elixir) expanding macro: Kernel.sigil_N/2
lib/mix/phoenix/schema.ex:214: Mix.Phoenix.Schema.type_to_default/3
could not compile dependency :phoenix, "mix compile" failed. You can recompile this dependency with "mix deps.compile phoenix", update it with "mix deps.update phoenix" or clean it with "mix deps.clean phoenix"
pleroma@localhost:/opt/pleroma$
I've tried several combinations of versions and sources (Elixir 1.7.4 and 1.8.2 from both the erlang-solutions.com repository and from asdf) of Erlang and Elixer, but to no avail. I keep running into this error. I do not know weather the cause is to be found in Erlang, Elixir or Pleroma. I hope someone can point me in the right direction...