Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lux_html_parse.erl:13: can't find include lib "xmerl/include/xmerl.hrl" and FATAL ERROR : The application 'lux' is missing. #13

Open
shufanhao opened this issue Sep 14, 2016 · 7 comments

Comments

@shufanhao
Copy link

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"

@shufanhao
Copy link
Author

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 .

@hawk
Copy link
Owner

hawk commented Sep 14, 2016

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" notifications@github.com 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
#13, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJpsBAYRLkNOne9xZhWkRRmI80Ntuafks5qp2M2gaJpZM4J8WkT
.

@shufanhao
Copy link
Author

@hawk I have fixed this issue, In the second comments, I have analyzed. thanks .

@ghost
Copy link

ghost commented Nov 7, 2016

Thanks shu-frank-csdn, that saved me a lot of debugging!

@indrgun
Copy link

indrgun commented Feb 21, 2017

How do we compile Erlang/OTP with xmlerl app installed?

@ksallberg
Copy link

ksallberg commented Feb 22, 2017

@indrgun One easy way of installing Erlang/OTP is from Erlang Solutions. These should come with xmerl.

@indrgun
Copy link

indrgun commented Feb 22, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants