钢筋无法从github获得依赖 [英] rebar unable to get dependency from github

查看:241
本文介绍了钢筋无法从github获得依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



rebar.config file:

  {sub_dirs,[rel]}。 

{deps_dir,[deps]}。
{erl_opts,[debug_info]}。

{deps,[
{thrift_erl,0.5.0,{git,git://github.com/xslogic/thrift_erl,HEAD}},
{eleveldb,1.0.1,{git,git://github.com/xslogic/eleveldb,HEAD}}
]}。

当我做./rebar编译我得到:

 依赖关系不可用:thrift_erl-0.5.0({git,
git://github.com/xslogic/thrift_erl,
HEAD })
依赖关系不可用:eleveldb-1.0.1({git,
git://github.com/xslogic/eleveldb,
HEAD})

它一直用短划线寻找 DEP_NAME



$ b

如何解决这个问题?

解决方案

我认为你应该首先使用 rebar get-deps 命令。
如果rebar compile命令出错,请尝试 rebar delete-deps rebar clean
如果仍然错误,直接切换到相关deps,独立编译这些项目。 (我曾经遇到这个问题)。


I am unable to get any dependency from github using rebar.

rebar.config file:

{sub_dirs, ["rel"]}.

{deps_dir, ["deps"]}.
{erl_opts, [debug_info]}.

{deps, [
 {thrift_erl, "0.5.0", {git, "git://github.com/xslogic/thrift_erl", "HEAD"}}, 
 {eleveldb, "1.0.1", {git, "git://github.com/xslogic/eleveldb", "HEAD"}} 
]}.

When I do ./rebar compile I get:

Dependency not available: thrift_erl-0.5.0 ({git,
                                         "git://github.com/xslogic/thrift_erl",
                                         "HEAD"})
Dependency not available: eleveldb-1.0.1 ({git,
                                       "git://github.com/xslogic/eleveldb",
                                       "HEAD"})

It keeps looking for DEP_NAME with a dash at the end and can't seem to find it.

How to fix this?

解决方案

I think that you should use rebar get-deps command firstly. If rebar compile command is error, try rebar delete-deps, rebar clean. If still error, switch to the related deps directly, compile these project independently. (I have faced this problem one time).

这篇关于钢筋无法从github获得依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆