我正在尝试使用rebar
来生成节点,并且我已按照此处的说明进行操作。
跑步rebar get-deps compile
很好,但跑步rebar generate
给了我
ERROR: Unable to generate spec: read file info /home/inaimathi/common/rebar.config~ failed
ERROR: Unexpected error: rebar_abort
ERROR: generate failed while processing /home/inaimathi/common/rel: rebar_abort
奇怪,考虑到这rebar.config~
不应该在这个generate
过程中的任何地方出现。删除rebar.config~
并再次尝试给我同样的错误,但与rebar.config
相反。
我的rebar.config
样子
{sub_dirs, ["rel"]}.
{lib_dirs, ["deps"]}.
{deps, [{erlsha2, ".*", {git, "git://github.com/vinoski/erlsha2.git", "HEAD"}}]}.
我的reltool.config
样子
{sys, [
{lib_dirs, []},
{erts, [{mod_cond, derived}, {app_file, strip}]},
{app_file, strip},
{rel, "common", "1",
[
kernel,
stdlib,
sasl,
common
]},
{rel, "start_clean", "",
[
kernel,
stdlib
]},
{boot_rel, "common"},
{profile, embedded},
{incl_cond, derived},
{mod_cond, derived},
{excl_archive_filters, [".*"]}, %% Do not archive built libs
{excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)",
"^erts.*/(doc|info|include|lib|man|src)"]},
{excl_app_filters, ["\.gitignore"]},
{app, common, [{mod_cond, app}, {incl_cond, include}, {lib_dir, ".."}]}
]}.
{target_dir, "common"}.
{overlay, [
{mkdir, "log/sasl"},
{copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},
{copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
{copy, "files/common", "bin/common"},
{copy, "files/common.cmd", "bin/common.cmd"},
{copy, "files/start_erl.cmd", "bin/start_erl.cmd"},
{copy, "files/install_upgrade.escript", "bin/install_upgrade.escript"},
{copy, "files/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"},
{copy, "files/vm.args", "releases/\{\{rel_vsn\}\}/vm.args"}
]}.
(完全rebar
生成,除了我必须{lib_dir, ".."}
按照我链接的说明添加)。
我究竟做错了什么?
编辑:我应该提到基础知识,因为我不知道出了什么问题。Erlang R15B01 来自 Debian Wheezy 存储库,在 64 位核心 i3 上运行。我从basho repo进行了手动拉动和构建钢筋。不确定其他是否相关。
EDIT2:同样的事情发生在https://github.com/downloads/basho/rebar/rebar的预建版本的钢筋上