-
Notifications
You must be signed in to change notification settings - Fork 57
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
Compilation issue - Lux don't work #45
Comments
I don't think the error from building is much of a problem, there's an exit before the end of the function that cannot be avoided. |
Could you try running the autoconf without first sourcing the NSO install env file? That way we could rule out that as a problem. |
Hi, yes i try it but without result. [admin@nso5-srv1 ~]$ source .bashrc FATAL ERROR: error:undef =ERROR REPORT==== 4-Jul-2022::11:19:25 === =ERROR REPORT==== 4-Jul-2022::11:19:25 === [admin@nso5-srv1 lux-master]$ source /opt/ncs/current/ncsrc |
we have a system install not a local install |
Also we try to remove the old folder e remove /usr/local/bin/lux and then restart again the entire procedure exiting from NSO env. this is the logs: now the status is that the /usr/local/bin/lux was not created |
ok i have another update i make this : FATAL ERROR: error:{case_clause, now seems that luxcfg is missing but is ok right? |
Hi
when i'm trying to in compile LUX on Centos 7 i got this error:
[admin@nso5-srv1 lux-master]$ make
make[1]: Entering directory
/home/admin/Lux/lux-master/src' "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_html_parse.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_html_utils.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_interpret.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_junit.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_log.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_main.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_parse.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_product.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_shell.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_suite.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_tap.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_trace.erl "/usr/bin/erlc" +warnings_as_errors +warn_unused_vars +debug_info -o ../ebin lux_utils.erl sed -e "s/%VSN%/2.8.1/g" < lux.app.src > ../ebin/lux.app make[1]: Leaving directory
/home/admin/Lux/lux-master/src'make[1]: Entering directory
/home/admin/Lux/lux-master/c_src' gcc -o ../priv/bin/runpty -g -O2 -Wall runpty.c runpty.c: In function 'main': runpty.c:460:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[1]: Leaving directory
/home/admin/Lux/lux-master/c_src'also when i try to run Lux this is the error:
[admin@nso5-srv1 ~]$ /usr/local/bin/lux
FATAL ERROR: error:undef
[{lux_args,getopts,[[],"/usr/local/lib/lux","/usr/local/bin/lux"],[]},
{lux_main,unsafe_main,1,[{file,"lux_main.erl"},{line,22}]},
{lux_escript,main,1,[{file,"/usr/local/bin/lux"},{line,48}]},
{escript,run,2,[{file,"escript.erl"},{line,747}]},
{escript,start,1,[{file,"escript.erl"},{line,277}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]
=ERROR REPORT==== 1-Jul-2022::09:47:28 ===
Loading of /usr/local/lib/lux/ebin/lux_args.beam failed: badfile
=ERROR REPORT==== 1-Jul-2022::09:47:28 ===
beam/beam_load.c(1158): Error loading module lux_args:
mandatory chunk of type 'Atom' not found
[admin@nso5-srv1 ~]$
i suppose for the error showing in compiling process.
what i did?
i did the autoconfigure, then modify the include.mk in ERLAC=" " i put the path to local erlc because the firt time i try to compile the path was populated to nso erlac application ("/home/odl/nso/5.3.6/bin/erlc" to ERLC="/usr/bin/erlc"
after that the ERLAN value is ok:
Erlang
ERL="/usr/bin/erl"
ERLC="/usr/bin/erlc"
EMULATOR=beam
then i run MAKE command as show on top and i got the error.
how could i can fix this and run properly Lux ?
The text was updated successfully, but these errors were encountered: