繁体   English   中英

如何将偏航作为带有钢筋的OTP版本的一部分使用?

[英]How to use yaws as a part of an OTP release with rebar?

我密切关注了有关依赖项管理发行版处理的钢筋文档,并尝试创建一个类似于我先前问题之一的已接受答案中所述的发行版。

但是,我无法使偏航包含在由钢筋生成的OTP版本中作为OTP应用程序。

这是我的工作:

  • 根据官方钢筋文档创建发行版(完成后,可以使用/ rel / myapp / bin / myapp start运行简单的gen_server)
  • 在项目目录的rebar.config文件中指定偏航角依赖关系
  • 运行rebar get-deps (这会拉动偏航和ibrowse)
  • 将此添加到reltool.config{app, yaws, [{incl_cond, include}]}
  • 将偏航添加到myapp.app.src中的应用程序列表
  • rebar compile generate

... ==> Leaving directory '/myapp/deps/yaws/rel' ==> yaws (compile) yaws.erl:13: can't find include file "yaws_appdeps.hrl" yaws.erl:220: undefined macro 'YAWS_APPDEPS' yaws.erl:174: function start_app_deps/0 undefined yaws.erl:194: function start_app_deps/0 undefined ERROR: Command [compile] failed!

笔记:

  • 关于此问题,官方的偏航文档似乎不是很解释。

  • 如果我将偏航更改为牛仔,我不会得到这样的错误。

更新

这是我的目录结构:

. ├── apps │ └── myapp ├── deps │ ├── ibrowse │ └── yaws └── rel └── files

打开yaws的src目录。 缺少的“ yaws_appdeps.hrl”包含文件可能具有扩展名“ .ini”或“ in”。 删除并重新编译

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM