【问题标题】:Cowboy example can't be compiled牛仔示例无法编译
【发布时间】:2014-06-10 09:08:57
【问题描述】:

我尝试从 Cowboy 示例中制作 Cookie 示例,但出现下一个错误: .................................................. 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

有人面临同样的麻烦吗?怎么了?

【问题讨论】:

    标签: templates erlang cowboy


    【解决方案1】:

    我以前没用过牛仔。根据错误消息,merl 应用程序不包括在内。试试rebar delete-deps rebar clean rebar get-deps

    然后再次编译cowboy。

    【讨论】:

    【解决方案2】:

    正如假设的那样,问题的根源在于依赖关系。我将ebinsrc 文件夹从~/cowboy/examples/cookie/deps/erlydtl/deps/merl 移动到/usr/local/lib/erlang/lib/merl,然后成功构建了应用程序。

    【讨论】:

      猜你喜欢
      • 2018-03-17
      • 2021-03-09
      • 2020-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-03
      • 2016-08-02
      • 2012-03-30
      相关资源
      最近更新 更多