lux icon indicating copy to clipboard operation
lux copied to clipboard

Steps to install LUX in MAC-OS

Open sunparor opened this issue 7 years ago • 15 comments

Hi Team,

Can anyone help me install LUX in mac os. Tried everything from the portal here but no help.

It would be great if someone can guide me through to install and run LUX on my mac-os.

sunparor avatar Jul 24 '17 18:07 sunparor

Hi Hawk,

I have used your way to log the issues, please find the same in the attachment. Let me know what is the issue and what should i do next...

lux.txt

sunparor avatar Jul 24 '17 18:07 sunparor

Hi,

You need the xmerl app from Erlang/OTP. It is probably simplest to install the complete erlang system. With Mac Ports or Homebrew:

port install erlang

or

brew install erlang

and rerun the lux installation:

git clean -ffxd autoconf && ./configure && make

/Håkan

On Jul 24, 2017 20:39, "sunparor" [email protected] wrote:

I have used your way to lgo the issues, please find the same in the attachment. Let me know what is the issue and what should i do next...

lux.txt https://github.com/hawk/lux/files/1170848/lux.txt

— 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/27#issuecomment-317516054, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJpsIXB7vjUHQQcDCRCFiJdhKQJnPVkks5sROT7gaJpZM4OhkPs .

hawk avatar Jul 24 '17 18:07 hawk

Hi Hawk,

Still facing the same issue. lux_log2.txt

sunparor avatar Jul 24 '17 19:07 sunparor

Hi Hawk,

I used the git desktop as well but still no luck.

How to get it running :(

lux_log3.txt

sunparor avatar Jul 24 '17 19:07 sunparor

It still looks like the xmerl app is missing.

Please, provide the logs for the erlang installation.

/Håkan

On Jul 24, 2017 21:35, "sunparor" [email protected] wrote:

Hi Hawk,

I used the git desktop as well but still no luck.

How to get it running :(

lux_log3.txt https://github.com/hawk/lux/files/1170984/lux_log3.txt

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hawk/lux/issues/27#issuecomment-317531052, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJpsNgsEsbbe-74xFXdkIWLUaNmA_8bks5sRPIZgaJpZM4OhkPs .

hawk avatar Jul 24 '17 19:07 hawk

SUNPAROR-M-W0JY:lux sunparor$ brew install erlang Warning: erlang 20.0 is already installed SUNPAROR-M-W0JY:lux sunparor$

sunparor avatar Jul 24 '17 20:07 sunparor

SUNPAROR-M-W0JY:lux sunparor$ which erl /usr/local/bin/erl SUNPAROR-M-W0JY:lux sunparor$ er -bash: er: command not found SUNPAROR-M-W0JY:lux sunparor$ erl Erlang/OTP 19 [erts-8.3] [source-d5c06c6] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]

Eshell V8.3 (abort with ^G) 1>

sunparor avatar Jul 24 '17 20:07 sunparor

Does you have the log from the real installation? If not, uninstall an install again to get a log.

But before doing that it may be worth to try to install xmerl separately. I don't know the package name but I would guess "xmerl" or "erlang-xmerl".

/Håkan

On Jul 24, 2017 22:04, "sunparor" [email protected] wrote:

SUNPAROR-M-W0JY:lux sunparor$ brew install erlang Warning: erlang 20.0 is already installed SUNPAROR-M-W0JY:lux sunparor$

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hawk/lux/issues/27#issuecomment-317538307, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJpsL-VU3c9m1wa0G0_qC_hpb7kI8Plks5sRPi5gaJpZM4OhkPs .

hawk avatar Jul 24 '17 20:07 hawk

Hi Hawk,

Is this fine now ?? how to check if lux in completely install and working fine ?

lux_log4.txt

sunparor avatar Jul 24 '17 21:07 sunparor

You can run one one of the exemple lux tests from examples. Go to the examples dir and "lux whatever.lux"

ksallberg avatar Jul 25 '17 11:07 ksallberg

no it is not running :( SUNPAROR-M-W0JY:ncs-run sunparor$ cd /Users/sunparor/Documents/GitHub/lux/ SUNPAROR-M-W0JY:lux sunparor$ cd examples/ SUNPAROR-M-W0JY:examples sunparor$ lux whatever.lux -bash: lux: command not found SUNPAROR-M-W0JY:examples sunparor$ ls -l total 72 -rw-r--r-- 1 sunparor staff 1567 Jul 24 21:30 calc.lux -rw-r--r-- 1 sunparor staff 110 Jul 24 21:30 error.lux -rw-r--r-- 1 sunparor staff 723 Jul 24 21:30 fail.lux -rw-r--r-- 1 sunparor staff 1508 Jul 24 21:30 intro.lux -rw-r--r-- 1 sunparor staff 1034 Jul 24 21:30 loop.lux -rw-r--r-- 1 sunparor staff 286 Jul 24 21:30 loop_fail.lux -rw-r--r-- 1 sunparor staff 153 Jul 24 21:30 skip.lux -rw-r--r-- 1 sunparor staff 112 Jul 24 21:30 unstable.lux -rw-r--r-- 1 sunparor staff 49 Jul 24 21:30 warning.lux SUNPAROR-M-W0JY:examples sunparor$ lux intro.lux -bash: lux: command not found SUNPAROR-M-W0JY:examples sunparor$

sunparor avatar Jul 25 '17 12:07 sunparor

You need to tell the system where lux resides. Either by explictly invoking "/usr/local/lux/bin/lux" or by adding /usr/local/lux/bin to your PATH before invoking "lux".

/Håkan

On Tue, Jul 25, 2017 at 2:59 PM, sunparor [email protected] wrote:

no it is not running :( SUNPAROR-M-W0JY:ncs-run sunparor$ cd /Users/sunparor/Documents/GitHub/lux/ SUNPAROR-M-W0JY:lux sunparor$ cd examples/ SUNPAROR-M-W0JY:examples sunparor$ lux whatever.lux -bash: lux: command not found SUNPAROR-M-W0JY:examples sunparor$ ls -l total 72 -rw-r--r-- 1 sunparor staff 1567 Jul 24 21:30 calc.lux -rw-r--r-- 1 sunparor staff 110 Jul 24 21:30 error.lux -rw-r--r-- 1 sunparor staff 723 Jul 24 21:30 fail.lux -rw-r--r-- 1 sunparor staff 1508 Jul 24 21:30 intro.lux -rw-r--r-- 1 sunparor staff 1034 Jul 24 21:30 loop.lux -rw-r--r-- 1 sunparor staff 286 Jul 24 21:30 loop_fail.lux -rw-r--r-- 1 sunparor staff 153 Jul 24 21:30 skip.lux -rw-r--r-- 1 sunparor staff 112 Jul 24 21:30 unstable.lux -rw-r--r-- 1 sunparor staff 49 Jul 24 21:30 warning.lux SUNPAROR-M-W0JY:examples sunparor$ lux intro.lux -bash: lux: command not found SUNPAROR-M-W0JY:examples sunparor$

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hawk/lux/issues/27#issuecomment-317729377, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJpsJJ3ZZuTQRfemsFWLxoZVfbPI59Dks5sRea0gaJpZM4OhkPs .

hawk avatar Jul 25 '17 13:07 hawk

It worked thanks :) Cheers

SUNPAROR-M-W0JY:examples sunparor$ lux intro.lux -bash: lux: command not found SUNPAROR-M-W0JY:examples sunparor$ /usr/local/lux/bin/lux intro.lux summary log : /Users/sunparor/Documents/GitHub/lux/examples/lux_logs/run_2017_07_25_13_27_06_883236/lux_summary.log

test case : intro.lux progress : ..:.:...:.:..:..:....:..:..:..:..:.:..:.:..:.:.:..:.:..:.....:..:.:.:....c....:.:...:..:..:..:..:.:..:..:. result : SUCCESS

successful : 1 summary : SUCCESS

file:///Users/sunparor/Documents/GitHub/lux/examples/lux_logs/run_2017_07_25_13_27_06_883236/lux_summary.log.html SUNPAROR-M-W0JY:examples sunparor$ cd ..

sunparor avatar Jul 25 '17 13:07 sunparor

Summary of installation...

##deps brew update brew upgrade brew install erlang coreutils

##make local env mkdir ~/local cd ~/local git clone https://github.com/hawk/lux.git

##export path export PATH=$PATH:~/local/lux/bin (put the above in .bash_profile or .profile)

##rebuild to use brew erlang cd ~/local/lux /bin/lux --make

##test /bin/lux examples/intro.lux

MacOS 10.13.3 High Sierra uname -a Darwin MACBOOK 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

malarivi avatar Apr 10 '18 15:04 malarivi

Summary of installation...

##deps brew update brew upgrade brew install erlang coreutils

##make local env mkdir ~/local cd ~/local git clone https://github.com/hawk/lux.git

##export path export PATH=$PATH:~/local/lux/bin (put the above in .bash_profile or .profile)

##rebuild to use brew erlang cd ~/local/lux /bin/lux --make

##test /bin/lux examples/intro.lux

MacOS 10.13.3 High Sierra uname -a Darwin MACBOOK 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

the above worked, except using relative pathing for bin, i.e. /bin/lux --make to ./bin/lux --make

and /bin/lux examples/intro.lux to ./bin/lux examples/intro.lux etc

jabelk avatar Oct 15 '18 06:10 jabelk