lux icon indicating copy to clipboard operation
lux copied to clipboard

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

Open johowen opened this issue 8 years ago • 8 comments

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$

johowen avatar Jan 20 '17 04:01 johowen

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

export ERL_LIBS=/usr/local/lux/lib

lloydroc avatar Feb 02 '17 17:02 lloydroc

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 avatar Feb 03 '17 11:02 hawk

I saw now that there are multiple issues with "lux --make".

Do you have a real need of using it?

On Jan 20, 2017 05:34, "johowen" [email protected] wrote:

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$

— 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/19, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJpsEperfrUq_y6qrk-kB_dHzwq4oBEks5rUDlUgaJpZM4Lo6rJ .

hawk avatar Feb 06 '17 02:02 hawk

Hi Hakan and Lloyd,

Thanks for the response. I tried a few things but could not get it installed. In the end I took a tar of a colleague’s directory. He had had challenges making it too.

When I get a moment I will try your suggestions.

Regards, Jeremy

From: Håkan Mattsson [email protected] Reply-To: hawk/lux [email protected] Date: Monday, 6 February 2017 at 1:37 PM To: hawk/lux [email protected] Cc: Jeremy Owen [email protected], Author [email protected] Subject: Re: [hawk/lux] The application 'lux' is missing error when installing on MacOS (#19)

I saw now that there are multiple issues with "lux --make".

Do you have a real need of using it?

On Jan 20, 2017 05:34, "johowen" [email protected] wrote:

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$

— 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/19, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJpsEperfrUq_y6qrk-kB_dHzwq4oBEks5rUDlUgaJpZM4Lo6rJ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/hawk/lux/issues/19#issuecomment-277574160, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYEep5vpFkWlAUdgcEE35McXwXPupwTpks5rZodvgaJpZM4Lo6rJ.

johowen avatar Feb 06 '17 21:02 johowen

Why did you run "lux --make" instead of "configure" and "make"?

hawk avatar Feb 06 '17 21:02 hawk

Hi Hakan,

I understand that to use configure I needed to run autoconf to create the configure script. I did not have autoconf on the mac.

Regards, Jeremy

From INSTALL.md: If you have cloned the source from github.com and want to build the tool using configure and make there is no configure script. Then you need to create it with

autoconf

From: Håkan Mattsson [email protected] Reply-To: hawk/lux [email protected] Date: Tuesday, 7 February 2017 at 8:59 AM To: hawk/lux [email protected] Cc: Jeremy Owen [email protected], Author [email protected] Subject: Re: [hawk/lux] The application 'lux' is missing error when installing on MacOS (#19)

Why did you run "lux --make" instead of "configure" and "make"?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/hawk/lux/issues/19#issuecomment-277827802, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYEep5a-3rGdCOprfzkC8x3c__4M8BDWks5rZ5fcgaJpZM4Lo6rJ.

johowen avatar Feb 06 '17 22:02 johowen

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 avatar Feb 07 '17 19:02 hawk

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

Please, try it out.

hawk avatar Feb 07 '17 20:02 hawk