【问题标题】:Erlang git repository dependency from github (undef)来自 github 的 Erlang git 存储库依赖项(undef)
【发布时间】:2013-03-22 21:59:16
【问题描述】:

我正在尝试运行一个调用

的脚本
erl -sname egs -pa apps/*/ebin -pa deps/*/ebin -boot start_sasl -s ex_reloader -s egs

我在调用脚本时遇到了这个错误

{"init terminating in do_boot",{undef,[{ex_reloader,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

在我的 rebar.config 文件中,代码如下所示

第一个 rebar.config 的代码

{sub_dirs, [
    "apps/egs",
    "apps/egs_patch",
    "apps/prs"
]}.
{dialyzer_opts, [src, {warnings, [
    behaviours,
    error_handling,
    race_conditions,
    unmatched_returns
%%  underspecs
]}]}.
{erl_opts, [
%%  bin_opt_info,
%%  warnings_as_errors,
    warn_export_all
]}.

第二个 rebar.config 的代码

{deps, [
    {ex_reloader, ".*", {git, "https://github.com/extend/ex_reloader.git", "HEAD"}},
    {cowboy, ".*", {git, "https://github.com/extend/cowboy.git", "HEAD"}}
]}.

是否有任何理由说明存储库未定义的原因。我应该安装其他包以便 git 依赖项工作吗?

【问题讨论】:

    标签: git github erlang libraries rebar


    【解决方案1】:

    看来您需要先运行rebar get-deps,才能将依赖项实际下载到deps 目录中。 (然后rebar compile,编译它们。这是一个递归命令。)

    【讨论】:

      【解决方案2】:

      我在您的帮助和另一篇文章中找到了答案。我需要下载钢筋库。我使用此链接下载 [1]:http://packages.ubuntu.com/raring/i386/rebar 然后我在正确的目录中使用了以下命令。

      将应用添加到 rebar.config 并使用:

      钢筋更新-deps

      用于更新。第一次,你需要使用:

      rebar get-deps

      然后编译依赖,使用:

      钢筋编译

      现在,进入下一个错误...

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-07-04
        • 2011-12-27
        • 2019-11-19
        • 2015-04-13
        • 1970-01-01
        相关资源
        最近更新 更多