lux_html_parse.erl:13: can't find include lib "xmerl/include/xmerl.hrl" and FATAL ERROR : The application 'lux' is missing.
odl@ubuntu:~/nso/lux$ make
make[1]: Entering directory /home/odl/nso/lux/src' "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_debug.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_html_gen.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_html_parse.erl lux_html_parse.erl:13: can't find include lib "xmerl/include/xmerl.hrl" lux_html_parse.erl:186: record xmlElement undefined lux_html_parse.erl:189: variable 'Tag' is unbound lux_html_parse.erl:190: variable 'Attrs' is unbound lux_html_parse.erl:191: variable 'Content' is unbound lux_html_parse.erl:192: record xmlAttribute undefined lux_html_parse.erl:194: variable 'Tag' is unbound lux_html_parse.erl:194: variable 'Value' is unbound lux_html_parse.erl:195: record xmlText undefined lux_html_parse.erl:196: variable 'Text' is unbound lux_html_parse.erl:200: record xmlComment undefined make[1]: *** [../ebin/lux_html_parse.beam] Error 1 make[1]: Leaving directory/home/odl/nso/lux/src'
make[1]: Entering directory /home/odl/nso/lux/c_src' gcc -o ../priv/bin/runpty -g -O2 -Wall runpty.c make[1]: Leaving directory/home/odl/nso/lux/c_src'
odl@ubuntu:~/nso/lux$ make install
make[1]: Entering directory `/home/odl/nso/lux/src'
mkdir -p /home/odl/nso/luxinstall
/home/odl/nso/lux/bin/lux --install /home/odl/nso/luxinstall
FATAL ERROR : The application 'lux' is missing. ESCRIPT : /home/odl/nso/lux/bin/lux VERSION : unknown CWD : /home/odl/nso/lux/src ROOT DIR : /usr/lib/erlang CODE PATH : ["/home/odl/nso/lux/ebin",".", "/usr/lib/erlang/lib/kernel-2.16.4/ebin", "/usr/lib/erlang/lib/stdlib-1.19.4/ebin"
Errors reasons: In my install process, under ncs environment, so when run make , it have some errors. It is because under ncs environment , when run make, will change include.mk ERLC="/usr/bin/erlc" to ERLC="/home/odl/nso/4.1.1/bin/erlc" , use ncs erlang lib . odl@ubuntu:~/nso/lux$ make make[1]: Entering directory `/home/odl/nso/lux/src' "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_debug.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_html_gen.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_html_parse.erl lux_html_parse.erl:13: can't find include lib "xmerl/include/xmerl.hrl" Fix methods : Option 1: Change include.mk ERLC="/home/odl/nso/4.1.1/bin/erlc" to ERLC="/usr/bin/erlc" Option 2: Exit ncs environment and install again .
When building lux, you need to use an Erlang/OTP installation with the app xmerl installed. From the error printout I can see that xmerl is not included in your code path.
/Håkan
On Sep 14, 2016 5:00 AM, "Frank" [email protected] wrote:
odl@ubuntu:~/nso/lux$ make make[1]: Entering directory /home/odl/nso/lux/src' "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_debug.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_html_gen.erl "/home/odl/nso/4.1.1/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_html_parse.erl lux_html_parse.erl:13: can't find include lib "xmerl/include/xmerl.hrl" lux_html_parse.erl:186: record xmlElement undefined lux_html_parse.erl:189: variable 'Tag' is unbound lux_html_parse.erl:190: variable 'Attrs' is unbound lux_html_parse.erl:191: variable 'Content' is unbound lux_html_parse.erl:192: record xmlAttribute undefined lux_html_parse.erl:194: variable 'Tag' is unbound lux_html_parse.erl:194: variable 'Value' is unbound lux_html_parse.erl:195: record xmlText undefined lux_html_parse.erl:196: variable 'Text' is unbound lux_html_parse.erl:200: record xmlComment undefined make[1]: *** [../ebin/lux_html_parse.beam] Error 1 make[1]: Leaving directory/home/odl/nso/lux/src' make[1]: Entering directory /home/odl/nso/lux/c_src' gcc -o ../priv/bin/runpty -g -O2 -Wall runpty.c make[1]: Leaving directory/home/odl/nso/lux/c_src' odl@ubuntu:~/nso/lux$ make install make[1]: Entering directory `/home/odl/nso/lux/src' mkdir -p /home/odl/nso/luxinstall /home/odl/nso/lux/bin/lux --install /home/odl/nso/luxinstall
FATAL ERROR : The application 'lux' is missing. ESCRIPT : /home/odl/nso/lux/bin/lux VERSION : unknown CWD : /home/odl/nso/lux/src ROOT DIR : /usr/lib/erlang CODE PATH : ["/home/odl/nso/lux/ebin",".", "/usr/lib/erlang/lib/kernel-2.16.4/ebin", "/usr/lib/erlang/lib/stdlib-1.19.4/ebin"
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hawk/lux/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJpsBAYRLkNOne9xZhWkRRmI80Ntuafks5qp2M2gaJpZM4J8WkT .
@hawk I have fixed this issue, In the second comments, I have analyzed. thanks .
Thanks shu-frank-csdn, that saved me a lot of debugging!
How do we compile Erlang/OTP with xmlerl app installed?
@indrgun One easy way of installing Erlang/OTP is from Erlang Solutions. These should come with xmerl.
Thanks.
I have figured it out. I simply installed on ubuntu the "erlang-dev" package.
On Feb 22, 2017 6:41 AM, "Kristian Sällberg" [email protected] wrote:
@indrgun https://github.com/indrgun One easy way of installing Erlang/OTP is from Erlang Solutions https://www.erlang-solutions.com/resources/download.html.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hawk/lux/issues/13#issuecomment-281687759, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBwtOrV6N0NG32lhu_NB7S7XohMXKKfks5rfEkPgaJpZM4J8WkT .