Skip to content

Compilation issue - Lux don't work  #45

@NicoCisco

Description

@NicoCisco

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions