lux icon indicating copy to clipboard operation
lux copied to clipboard

Archlinux: The application 'lux' is missing.

Open papo483 opened this issue 3 years ago • 2 comments

Hi. I have installed lux using method in INSTALL.md for Arch Linux, tried building using "autoconf/.configure/make/make install" but I am still getting following error when I try to run lux:

FATAL ERROR : The application 'lux' is missing. ESCRIPT : /usr/bin/lux VERSION : nofile CWD : /home/mpapco/Projects/ngena/src APP DIR : /usr/lib/lux ROOT DIR : /usr/lib/erlang CODE PATH : ["/usr/lib/lux/ebin",".", "/usr/lib/erlang/lib/kernel-8.5.1/ebin", "/usr/lib/erlang/lib/stdlib-4.1.1/ebin", "/usr/lib/erlang/lib/xmerl-1.3.30/ebin", "/usr/lib/erlang/lib/wx-2.2/ebin", "/usr/lib/erlang/lib/tools-3.5.3/ebin", "/usr/lib/erlang/lib/tftp-1.0.3/ebin", "/usr/lib/erlang/lib/syntax_tools-3.0/ebin", "/usr/lib/erlang/lib/ssl-10.8.5/ebin", "/usr/lib/erlang/lib/ssh-4.15/ebin", "/usr/lib/erlang/lib/snmp-5.13.1/ebin", "/usr/lib/erlang/lib/sasl-4.2/ebin", "/usr/lib/erlang/lib/runtime_tools-1.19/ebin", "/usr/lib/erlang/lib/reltool-0.9/ebin", "/usr/lib/erlang/lib/public_key-1.13.1/ebin", "/usr/lib/erlang/lib/parsetools-2.4.1/ebin", "/usr/lib/erlang/lib/os_mon-2.7.1/ebin", "/usr/lib/erlang/lib/observer-2.13/ebin", "/usr/lib/erlang/lib/mnesia-4.21.2/ebin", "/usr/lib/erlang/lib/megaco-4.4.1/ebin", "/usr/lib/erlang/lib/jinterface-1.13.1/ebin", "/usr/lib/erlang/lib/inets-8.1/ebin", "/usr/lib/erlang/lib/ftp-1.1.1/ebin", "/usr/lib/erlang/lib/eunit-2.8.1/ebin", "/usr/lib/erlang/lib/et-1.6.5/ebin", "/usr/lib/erlang/lib/erts-13.1.2/ebin", "/usr/lib/erlang/lib/erl_interface-5.3/ebin", "/usr/lib/erlang/lib/erl_docgen-1.4/ebin", "/usr/lib/erlang/lib/eldap-1.2.10/ebin", "/usr/lib/erlang/lib/edoc-1.2/ebin", "/usr/lib/erlang/lib/diameter-2.2.7/ebin", "/usr/lib/erlang/lib/dialyzer-5.0.3/ebin", "/usr/lib/erlang/lib/debugger-5.3/ebin", "/usr/lib/erlang/lib/crypto-5.1.2/ebin", "/usr/lib/erlang/lib/compiler-8.2.1/ebin", "/usr/lib/erlang/lib/common_test-1.23.1/ebin", "/usr/lib/erlang/lib/asn1-5.0.21/ebin"]

I am using archlinux(6.0.7-arch1-1) with installed erlang 25.1.2-2 package (I have tried erlang-nox 25.1.2-1, but getting same error).

Error seems to be raised in main method of lux on line LuxAppDir = require_app(undefined, ?APPLICATION), then require_app method

   AppDir ->
        case application:load(AppName) of
            ok ->
                AppDir;
            {error, {already_loaded,AppName}}->
                AppDir;
            {error, _} ->	    
  	    io:format("...PAPO in require_app _ AppDir:~s", [AppDir]),
                missing_app(MainOp, AppName)
        end

I have checked issue #19 that looks similar, but setting "export ERL_LIBS=/usr/local/lux/lib" didn't really help. Is there any further step necessary for Linux/ArchLinux?

papo483 avatar Nov 23 '22 17:11 papo483

Hi,

Can you share the printouts from autoconf/.configure/make/make install?

What files do you have in the directory /usr/lib/lux/ebin?

How do you invoke lux?

/Håkan

On Wed, Nov 23, 2022 at 6:55 PM Marek Papco @.***> wrote:

Hi. I have installed lux using method in INSTALL.md for Arch Linux, tried building using "autoconf/.configure/make/make install" but I am still getting following error when I try to run lux: FATAL ERROR : The application 'lux' is missing. ESCRIPT : /usr/bin/lux VERSION : nofile CWD : /home/mpapco/Projects/ngena/src APP DIR : /usr/lib/lux ROOT DIR : /usr/lib/erlang CODE PATH : ["/usr/lib/lux/ebin",".", "/usr/lib/erlang/lib/kernel-8.5.1/ebin", "/usr/lib/erlang/lib/stdlib-4.1.1/ebin", "/usr/lib/erlang/lib/xmerl-1.3.30/ebin", "/usr/lib/erlang/lib/wx-2.2/ebin", "/usr/lib/erlang/lib/tools-3.5.3/ebin", "/usr/lib/erlang/lib/tftp-1.0.3/ebin", "/usr/lib/erlang/lib/syntax_tools-3.0/ebin", "/usr/lib/erlang/lib/ssl-10.8.5/ebin", "/usr/lib/erlang/lib/ssh-4.15/ebin", "/usr/lib/erlang/lib/snmp-5.13.1/ebin", "/usr/lib/erlang/lib/sasl-4.2/ebin", "/usr/lib/erlang/lib/runtime_tools-1.19/ebin", "/usr/lib/erlang/lib/reltool-0.9/ebin", "/usr/lib/erlang/lib/public_key-1.13.1/ebin", "/usr/lib/erlang/lib/parsetools-2.4.1/ebin", "/usr/lib/erlang/lib/os_mon-2.7.1/ebin", "/usr/lib/erlang/lib/observer-2.13/ebin", "/usr/lib/erlang/lib/mnesia-4.21.2/ebin", "/usr/lib/erlang/lib/megaco-4.4.1/ebin", "/usr/lib/erlang/lib/jinterface-1.13.1/ebin", "/usr/lib/erlang/lib/inets-8.1/ebin", "/usr/lib/erlang/lib/ftp-1.1.1/ebin", "/usr/lib/erlang/lib/eunit-2.8.1/ebin", "/usr/lib/erlang/lib/et-1.6.5/ebin", "/usr/lib/erlang/lib/erts-13.1.2/ebin", "/usr/lib/erlang/lib/erl_interface-5.3/ebin", "/usr/lib/erlang/lib/erl_docgen-1.4/ebin", "/usr/lib/erlang/lib/eldap-1.2.10/ebin", "/usr/lib/erlang/lib/edoc-1.2/ebin", "/usr/lib/erlang/lib/diameter-2.2.7/ebin", "/usr/lib/erlang/lib/dialyzer-5.0.3/ebin", "/usr/lib/erlang/lib/debugger-5.3/ebin", "/usr/lib/erlang/lib/crypto-5.1.2/ebin", "/usr/lib/erlang/lib/compiler-8.2.1/ebin", "/usr/lib/erlang/lib/common_test-1.23.1/ebin", "/usr/lib/erlang/lib/asn1-5.0.21/ebin"] I am using archlinux(6.0.7-arch1-1) with installed erlang 25.1.2-2 package (I have tried erlang-nox 25.1.2-1, but getting same error).

Error seems to be raised in main method of lux on line LuxAppDir = require_app(undefined, ?APPLICATION), then require_app method AppDir -> case application:load(AppName) of ok -> AppDir; {error, {already_loaded,AppName}}-> AppDir; {error, _} -> io:format("...PAPO in require_app _ AppDir:~s", [AppDir]), missing_app(MainOp, AppName) end

I have checked issue #19 https://github.com/hawk/lux/issues/19 that looks similar, but setting "export ERL_LIBS=/usr/local/lux/lib" didn't really help. Is there any further step necessary for Linux/ArchLinux?

— Reply to this email directly, view it on GitHub https://github.com/hawk/lux/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGTMFWUPQTMMHJEGR33KDWJZLAVANCNFSM6AAAAAASJHMF2U . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hawk avatar Nov 23 '22 19:11 hawk

Hi hawk, I had installation for ArchLinux and tried autoconf/.configure/make/make install and it worked this time. I think previously I didn't uninstall original lux (pacman -Rsn lux), sorry my bad. When I do "lux --version" now I am getting output

(ng-venv) mpapco@thinkarch $ lux --version 2.1

It seems there is just ArchLinux way not working (wget https://github.com/hawk/lux/releases/download/lux-2.1/PKGBUILD, makepkg -si).

Thanks, Marek

papo483 avatar Nov 24 '22 08:11 papo483