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

Steps to install LUX in MAC-OS #27

Open
sunparor opened this issue Jul 24, 2017 · 15 comments
Open

Steps to install LUX in MAC-OS #27

sunparor opened this issue Jul 24, 2017 · 15 comments

Comments

@sunparor
Copy link

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
Copy link
Author

sunparor commented Jul 24, 2017

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

@hawk
Copy link
Owner

hawk commented Jul 24, 2017 via email

@sunparor
Copy link
Author

Hi Hawk,

Still facing the same issue.
lux_log2.txt

@sunparor
Copy link
Author

Hi Hawk,

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

How to get it running :(

lux_log3.txt

@hawk
Copy link
Owner

hawk commented Jul 24, 2017 via email

@sunparor
Copy link
Author

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

@sunparor
Copy link
Author

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>

@hawk
Copy link
Owner

hawk commented Jul 24, 2017 via email

@sunparor
Copy link
Author

Hi Hawk,

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

lux_log4.txt

@ksallberg
Copy link

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

@sunparor
Copy link
Author

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$

@hawk
Copy link
Owner

hawk commented Jul 25, 2017 via email

@sunparor
Copy link
Author

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 ..

@malarivi
Copy link

malarivi commented Apr 10, 2018

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

@jabelk
Copy link

jabelk commented Oct 15, 2018

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

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

5 participants