安装氮气时出现以下错误。按照http://nitrogenproject.com/doc/tutorial.html中列出的安装说明,我从GitHub中提取源并运行以下命令。
msairam@passion:~/nitrogen$ make slim_yaws PROJECT=testproj
make[1]: Entering directory '/home/msairam/nitrogen'
./rebar get-deps
==> rel (get-deps)
==> nitrogen (get-deps)
./rebar compile
==> rel (compile)
==> nitrogen (compile)
make[2]: Entering directory '/home/msairam/nitrogen'
make[2]: Leaving directory '/home/msairam/nitrogen'
********************************************************************************
Creating slim release in ../testproj with yaws
********************************************************************************
Generating "reltool.config" with merged overlays
...Loading base file: "reltool_base.config"
...Merging Overlay from "reltool_slim.config"
...Writing "reltool.config"
...SUCCESS
make[2]: Entering directory '/home/msairam/nitrogen'
Turning "reltool.config" into a slim release
make[3]: Entering directory '/home/msairam/nitrogen'
==> rel (generate)
ERROR: generate failed while processing /home/msairam/nitrogen/rel: {'EXIT',
{undef,
[{reltool,start_server,
[[{sys,
[{profile,development},
{excl_lib,otp_root},
{rel,"nitrogen","2.3.1",
[kernel,stdlib,sasl,crypto,runtime_tools,xmerl,
compiler,ssl,common_test,parsetools]},
{rel,"start_clean",[],[kernel,stdlib]},
{boot_rel,"nitrogen"},
{excl_sys_filters,
["^bin/.*","^usr.*","^doc.*","^README$",
"^Install.ini$","^Install.exe$","^Uninstall.exe$",
"^COPYRIGHT$","^PR.template$"]},
{excl_archive_filters,[".*"]},
{incl_cond,include}]}]],
[]},
{rebar_reltool,generate,2,[]},
{rebar_core,run_modules,4,[]},
{rebar_core,execute,6,[]},
{rebar_core,maybe_execute,8,[]},
{rebar_core,process_dir1,7,[]},
{rebar_core,process_commands,2,[]},
{rebar,main,1,[]}]}}
Makefile:312: recipe for target 'generate' failed
make[3]: *** [generate] Error 1
make[3]: Leaving directory '/home/msairam/nitrogen'
Makefile:328: recipe for target 'rel_inner_slim' failed
make[2]: *** [rel_inner_slim] Error 2
make[2]: Leaving directory '/home/msairam/nitrogen'
Makefile:190: recipe for target 'slim' failed
make[1]: *** [slim] Error 2
make[1]: Leaving directory '/home/msairam/nitrogen'
Makefile:150: recipe for target 'slim_yaws' failed
make: *** [slim_yaws] Error 2
erlang新手。有人能帮助我吗?感谢
答案 0 :(得分:1)
这绝对是您的Erlang安装的问题 - 可能缺少reltool应用程序。
应该在Nitrogen文档中修复的一件事是如何正确安装Erlang。当前的文档或多或少地假设已经安装了Erlang。
Ubuntu / Debian提供的Erlang软件包主要是联合的,这意味着apt-get install erlang
并没有给你所有的Erlang - 那里有一堆丢失的应用程序。
相反,我通常建议下载并安装Erlang Solutions准备的软件包:https://www.erlang-solutions.com/resources/download.html
具体来说,esl-erlang
包是完整的 erlang,而erlang
包是联合包。如果您是Erlang的新手,或者不确定要安装哪个,esl-erlang
是最安全的选择,这将确保您获得所有的erlang。
新说明
按如下方式安装软件包:
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang
结束新说明
要么是这样,要么使用典型的configure && make && make install
模式从源代码安装Erlang。 http://www.erlang.org/downloads
完成后,尝试在氮气中重新运行make slim_yaws PROJECT=testproj
。
答案 1 :(得分:0)
我从https://www.erlang-solutions.com/resources/download.html安装了erlang版本18.3。同样,我下载氮气并使用http://nitrogenproject.com/doc/index.html#sec-3中给出的指令。
暂时我正在使用嵌入选项并使用氮气。
还有其他解决方案吗?
答案 2 :(得分:0)
我安装了Ubuntu 16.04(Xenial Xerus)。