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

The application 'lux' is missing error when installing on MacOS #19

Open
johowen opened this issue Jan 20, 2017 · 8 comments
Open

The application 'lux' is missing error when installing on MacOS #19

johowen opened this issue Jan 20, 2017 · 8 comments

Comments

@johowen
Copy link

johowen commented Jan 20, 2017

I am trying to follow the install process for ‘Obscure platforms’ as per attached install instructions.

Obscure platforms

On "obscure platforms" which have Erlang/OTP but lacks
autotools, make etc. it is still possible to build with

bin/lux --make

for example on OS X 10.11.6:

JOHOWEN-M-73DD:lux-master johowen$ bin/lux --make

FATAL ERROR : The application 'lux' is missing.
ESCRIPT : bin/lux
VERSION : unknown
CWD : /Users/johowen/lux-master
ROOT DIR : /usr/local/lib/erlang
CODE PATH : ["/Users/johowen/lux-master/ebin",".",
"/usr/local/lib/erlang/lib/kernel-5.1.1/ebin",
"/usr/local/lib/erlang/lib/stdlib-3.2/ebin",
"/usr/local/lib/erlang/lib/xmerl-1.3.12/ebin",
"/usr/local/lib/erlang/lib/wx-1.8/ebin",
"/usr/local/lib/erlang/lib/typer-0.9.11/ebin",
"/usr/local/lib/erlang/lib/tools-2.9/ebin",
"/usr/local/lib/erlang/lib/syntax_tools-2.1.1/ebin",
"/usr/local/lib/erlang/lib/ssl-8.1/ebin",
"/usr/local/lib/erlang/lib/ssh-4.4/ebin",
"/usr/local/lib/erlang/lib/snmp-5.2.4/ebin",
"/usr/local/lib/erlang/lib/sasl-3.0.2/ebin",
"/usr/local/lib/erlang/lib/runtime_tools-1.11/ebin",
"/usr/local/lib/erlang/lib/reltool-0.7.2/ebin",
"/usr/local/lib/erlang/lib/public_key-1.3/ebin",
"/usr/local/lib/erlang/lib/percept-0.9/ebin",
"/usr/local/lib/erlang/lib/parsetools-2.1.4/ebin",
"/usr/local/lib/erlang/lib/otp_mibs-1.1.1/ebin",
"/usr/local/lib/erlang/lib/os_mon-2.4.1/ebin",
"/usr/local/lib/erlang/lib/orber-3.8.2/ebin",
"/usr/local/lib/erlang/lib/odbc-2.12/ebin",
"/usr/local/lib/erlang/lib/observer-2.3/ebin",
"/usr/local/lib/erlang/lib/mnesia-4.14.2/ebin",
"/usr/local/lib/erlang/lib/megaco-3.18.1/ebin",
"/usr/local/lib/erlang/lib/jinterface-1.7.1/ebin",
"/usr/local/lib/erlang/lib/inets-6.3.4/ebin",
"/usr/local/lib/erlang/lib/ic-4.4.2/ebin",
"/usr/local/lib/erlang/lib/hipe-3.15.3/ebin",
"/usr/local/lib/erlang/lib/gs-1.6.2/ebin",
"/usr/local/lib/erlang/lib/eunit-2.3.2/ebin",
"/usr/local/lib/erlang/lib/et-1.6/ebin",
"/usr/local/lib/erlang/lib/erts-8.2/ebin",
"/usr/local/lib/erlang/lib/erl_interface-3.9.2/ebin",
"/usr/local/lib/erlang/lib/erl_docgen-0.6.1/ebin",
"/usr/local/lib/erlang/lib/eldap-1.2.2/ebin",
"/usr/local/lib/erlang/lib/edoc-0.8.1/ebin",
"/usr/local/lib/erlang/lib/diameter-1.12.1/ebin",
"/usr/local/lib/erlang/lib/dialyzer-3.0.3/ebin",
"/usr/local/lib/erlang/lib/debugger-4.2.1/ebin",
"/usr/local/lib/erlang/lib/crypto-3.7.2/ebin",
"/usr/local/lib/erlang/lib/cosTransactions-1.3.2/ebin",
"/usr/local/lib/erlang/lib/cosTime-1.2.2/ebin",
"/usr/local/lib/erlang/lib/cosProperty-1.2.1/ebin",
"/usr/local/lib/erlang/lib/cosNotification-1.2.2/ebin",
"/usr/local/lib/erlang/lib/cosFileTransfer-1.2.1/ebin",
"/usr/local/lib/erlang/lib/cosEventDomain-1.2.1/ebin",
"/usr/local/lib/erlang/lib/cosEvent-2.2.1/ebin",
"/usr/local/lib/erlang/lib/compiler-7.0.3/ebin",
"/usr/local/lib/erlang/lib/common_test-1.13/ebin",
"/usr/local/lib/erlang/lib/asn1-4.0.4/ebin"]
JOHOWEN-M-73DD:lux-master johowen$

@lloydroc
Copy link

lloydroc commented Feb 2, 2017

Try to put this in your shell's rc file and source it.

export ERL_LIBS=/usr/local/lux/lib

@hawk
Copy link
Owner

hawk commented Feb 3, 2017

The problem with that is that you will use the Erlang/OTP installed at /usr/local/lib/erlang and not the one that is bundled with lux. They may possibly be incompatible.

Hopefully the problem will go away when this pull request makes it into the Erlang/OTP release:

https://github.com/erlang/otp/pull/1293

But for the time being you can use Lloyds suggestion as a workaround.

@hawk
Copy link
Owner

hawk commented Feb 6, 2017 via email

@johowen
Copy link
Author

johowen commented Feb 6, 2017 via email

@hawk
Copy link
Owner

hawk commented Feb 6, 2017 via email

@johowen
Copy link
Author

johowen commented Feb 6, 2017 via email

@hawk
Copy link
Owner

hawk commented Feb 7, 2017

Sad to say, the lux --make option has never worked. I think you may be the first one that ever have tried it.

It only handles the Erlang code. But in order to work properly a c-program does also needs to be compiled. Compiled with flags from configure...

@hawk
Copy link
Owner

hawk commented Feb 7, 2017

I have checked in a simple fix in the develop branch (soon to be released).

Please, try it out.

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

3 participants