我正在嘗試使用rebar
生成一個節點,並且我遵循了here的指示。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脫離了在64位核心i3上運行的Debian Wheezy repo。我從the basho repo做了一個手動拉和建立螺紋鋼。不確定是否有其他事情是相關的。
EDIT2:同樣的事情與螺紋鋼的預建版本的https://github.com/downloads/basho/rebar/rebar
你有沒有找到答案?我被困在同樣的事情上。 –
@ThomasKobberPanum - 沒有。部署工具錯誤是我不再使用Erlang的主要原因。對不起,祝你好運。 – Inaimathi