I can't compile zotonic 0.82.0: escript: exception error: undefined function enc:main/1

Has anyone encountered such a problem?

erl
Erlang/OTP 25 [erts-13.2.2.7] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

Eshell V13.2.2.7  (abort with ^G)
./rebar3 compile
===> Running hooks for compile in app jiffy (/home/oper/Programs/zotonic/_build/default/lib/jiffy) with configuration:
===>    {pre_hooks, [{[],compile,"escript enc compile"}]}.
escript: exception error: undefined function enc:main/1
  in function  escript:run/2 (escript.erl, line 750)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_em/1 
  in call from init:do_boot/3 
===> Hook for compile failed!

Hi, Zotonic 0.x only supports Erlang up to 22.3.

Zotonic 1.x supports Erlang 23 and later.

1 Like

only 22.3 or 22.3.4.27 can?

The newest on 22.3 is ok, so 22.3.4.27 should work.

On 23.0 and later there were some changes that are incompatible.
We have fixed all those in Zotonic 1.x.