Steps to install LUX in MAC-OS
sunparor opened this issue · 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.
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...
Hi Hawk,
Still facing the same issue.
lux_log2.txt
SUNPAROR-M-W0JY:lux sunparor$ brew install erlang
Warning: erlang 20.0 is already installed
SUNPAROR-M-W0JY:lux 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>
Hi Hawk,
Is this fine now ?? how to check if lux in completely install and working fine ?
You can run one one of the exemple lux tests from examples. Go to the examples dir and "lux whatever.lux"
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$
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 ..
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
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.luxMacOS 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