螺纹钢释放不是以奇怪的错误开始的

时间:2012-11-15 05:34:41

标签: erlang release otp rebar

在MacOS下执行'rebar generate'时,运行得很好。在linux(gentoo)下执行相同操作时,启动发布失败,错误与asn1_db相关。这是否意味着在某种意义上主机系统上的erlang安装会被破坏?

Exec: /home/apis/smsapi/rel/smsapi/erts-5.9/bin/erlexec -boot /home/apis/smsapi/rel/smsapi/releases/1/smsapi -mode embedded -config /home/apis/smsapi/rel/smsapi/releases/1/sys.config -args_file /home/apis/smsapi/rel/smsapi/releases/1/vm.args -- console 
Root: /home/apis/smsapi/rel/smsapi
{"init terminating in do_boot",{'cannot load',asn1_db,get_file}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

1 个答案:

答案 0 :(得分:0)

Rebar找不到asn1_db模块,它是asn1 Erlang应用程序的一部分。某些发行版具有此应用程序的单独包,名为erlang-asn1。也许Gentoo就是这种情况?

您可以尝试将以下内容添加到reltool.config

{app, asn1, [{incl_cond, exclude}]}

这将从发布中排除该应用程序。