Running on Windows linux subsystem?
Opened this issue · 6 comments
Hey,
I'm occasional linux user and currently do not have any linux available besides the linux subsystem on Windows 10. When I ran sudo make install I got the following error:
mkdir -p /usr/local/bin
sh build.sh
- CONF_DEST=${HOME}/.config/mcbash
- ALT_CONF_DEST=/etc
- [[ -d ./build ]]
build.sh: 10: [[: not found - mkdir ./build
- touch ./build/mcbash
- echo #!/bin/bash
- echo CONF_DEST="${HOME}/.config/mcbash"
- echo ALT_CONF_DEST="/etc"
- cat ./misc/colors.conf
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/00_dependencies
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/01_args
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/02_config_file
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/03_destination_folder
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/04_dns+
sed /^#!/bin/(ba)?sh/d ; /^#.*/d - cat ./func/05_checkpoint
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/06_interface
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/07_mac
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/08_interactive_mode
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/09_proxy
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/10_scan
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
- cat ./func/11_user_agent+
sed /^#!/bin/(ba)?sh/d ; /^#.*/d - cat ./func/99_mcbash
- sed /^#!/bin/(ba)?sh/d ; /^#.*/d
build.sh: 34: Syntax error: redirection unexpected
make: *** [Makefile:14: install] Error 2
If I run the same command again sudo make install it now results in following error:
mkdir -p /usr/local/bin
sh build.sh
- CONF_DEST=${HOME}/.config/mcbash
- ALT_CONF_DEST=/etc
- [[ -d ./build ]]
build.sh: 10: [[: not found - mkdir ./build
make: *** [Makefile:14: install] Error 1
The linux subsystem installed in Ubuntu. Thanks for any help!
Ok definitely not an error with my linux subsystem, I get the same error when I run sudo make install in a console under MacOS.
Hi @stzokev,
I've changed build.sh
for better compliance with different shells, there's a chance for it to work on your machines !
@dougy147 Thanks a lot, I can confirm it now installs on Ubuntu subsystem successfully and the app itself works as advertised (tested on a couple of servers). Big thanks!
Ok I've just noticed something strange, so better to ask here and if we manage to formulate/explain it, then we could log it as separate issue? On one of the servers I tested, EVERY single mac address is reported as expired, I've reached 16k and all are reported as expired. This is hardly the case, there must be something specific here that fools mcbash to report every single mac as expired. Here is the server for you to test if you wish Dougy
=> Scan @ 185.182.193.203:25461 [0.5 s/request]
[16063] 00:1A:79:3A:54:EF [expired] g for 2 seconds...
WARNING: mcbash could need this optional dependency : 'bc'.
Consider installing it on your machine.
WARNING: Config file not found. This can cause weird behaviors.
But it actually run's, what should I do to fix these issues?