我正在使用Ubuntu 12.04LTS,并根据软件管理器实用程序升级所有软件
我正尝试使用<{p>从nitrogenproject site创建一个氮气应用程序
git clone https://github.com/nitrogen/nitrogen
make rel_yaws
在编译阶段,我收到以下错误
==> yaws (compile)
=ERROR REPORT==== 5-Jan-2014::17:02:26 ===
Cannot read "/home/good/yaws_nitrogen/nitrogen/rel/nitrogen/lib/yaws/src/../ebin/../priv/charset.def": "no such file or directory"
--- Installing local config file at /home/good/yaws_nitrogen/nitrogen/rel/nitrogen/lib/yaws/etc/yaws/yaws.conf
Compiled src/yaws_shaper.erl
然后继续编译,直到它因此错误提前终止
Compiling /home/good/yaws_nitrogen/nitrogen/rel/nitrogen/lib/yaws/c_src/epam.c
/home/good/yaws_nitrogen/nitrogen/rel/nitrogen/lib/yaws/c_src/epam.c:2:22: fatal error: pam_appl.h: No such file or directory
compilation terminated.
ERROR: compile failed while processing /home/good/yaws_nitrogen/nitrogen/rel/nitrogen/lib/yaws: rebar_abort
make[3]: *** [compile] Error 1
make[3]: Leaving directory `/home/good/yaws_nitrogen/nitrogen/rel/nitrogen'
make[3]: Entering directory `/home/good/yaws_nitrogen/nitrogen/rel/nitrogen'
Generating a default cookie in /etc/vm.args
make[3]: Leaving directory `/home/good/yaws_nitrogen/nitrogen/rel/nitrogen'
我该怎么办? 提前谢谢!!
答案 0 :(得分:4)
我按照与您相同的步骤在Ubuntu 12.04上成功构建,没问题。 Yaws编译期间的第一个错误是无害的 - 您可以忽略它。第二个问题是由于您缺少libpam0g-dev软件包而引起的。在尝试重建氮气之前尝试此步骤:
sudo apt-get install libpam0g-dev
如果您仍有问题,也可以考虑运行:
sudo apt-get build-dep yaws
确保您安装了所有必需的软件包。