D
D
donlino2014-04-25 00:48:49
Erlang
donlino, 2014-04-25 00:48:49

How to fix compilation error from Cowboy examples?

I'm trying to compile a Cookie example from Cowboy examples, but I get an error:

..................................................
Finished in 16.335 seconds
770 tests, 0 failures
 ERLC   cookie_app.erl cookie_sup.erl toppage_handler.erl
 DTL    toppage.dtl
{"init terminating in do_boot",{undef,[{merl,term,[<<237 bytes>>],[]},{erlydtl_beam_compiler,string_ast,2,[{file,"src/erlydtl_beam_compiler.erl"},{line,966}]},{lists,mapfoldl,3,[{file,"lists.erl"},{line,1352}]},{erlydtl_beam_compiler,body_ast,3,[{file,"src/erlydtl_beam_compiler.erl"},{line,685}]},{erlydtl_beam_compiler,compile_to_binary,3,[{file,"src/erlydtl_beam_compiler.erl"},{line,195}]},{erlydtl_compiler,compile,1,[{file,"src/erlydtl_compiler.erl"},{line,206}]},{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,657}]},{erl_eval,eval_lc1,6,[{file,"erl_eval.erl"},{line,683}]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
make: * [ebin/cookie.app] Error 1

Has anyone experienced something similar?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-04-25
@begemot_sun

{undef,[{merl,term,[<<237 bytes>>],[]}
says he didn't find merl:term
rebar get-deps did ?

D
donlino, 2014-04-26
@donlino

I partially solved the problem by moving merl from the erlydtl dependencies folder to /usr/local/lib/erlang/lib/, but the question remains why erlang does not find merl in the application's dependencies?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question