traviscross / mtr

Official repository for mtr, a network diagnostic tool
http://www.bitwizard.nl/mtr/
GNU General Public License v2.0
2.6k stars 334 forks source link

Windows 11 x64 installation #474

Closed nsk closed 1 year ago

nsk commented 1 year ago

I have install requiment have error :

nsk@DESKTOP-S0EHC8Q ~/mtr $ ./bootstrap.sh && ./configure && make ./bootstrap.sh: line 2: $'\r': command not found '.local-1.16: error: non-option arguments are not accepted: ' aclocal-1.16: Try '/usr/bin/aclocal-1.16 --help' for more information. ./bootstrap.sh: line 4: $'autoheader\r': command not found '.tomake-1.16: error: unrecognized option '--foreign automake-1.16: Try '/usr/bin/automake-1.16 --help' for more information. 'utoconf-2.71: error: invalid option '--force Try 'autoconf-2.71 --help' for more information.

thx for help

rewolff commented 1 year ago

The bootstrap script runs "aclocal" with optional arguments. Those would be "nothing" in 99% of the cases. So... edit bootstrap.sh and remove the "$ACLOCAL_OPTS" on the second or third line. See what happens then.

nsk commented 1 year ago

i have delete line i have more many errors :

$ ./bootstrap.sh ./bootstrap.sh: line 2: $'\r': command not found '.local-1.16: error: non-option arguments are not accepted: ' aclocal-1.16: Try '/usr/bin/aclocal-1.16 --help' for more information. ./bootstrap.sh: line 4: $'autoheader\r': command not found '.tomake-1.16: error: unrecognized option '--foreign automake-1.16: Try '/usr/bin/automake-1.16 --help' for more information. 'utoconf-2.71: error: invalid option '--force Try 'autoconf-2.71 --help' for more information.

yvs2014 commented 1 year ago

@nsk strip CR character from bootstrap.sh: $ sed -i 's/\r//' bootstrap.sh $ ./bootstrap.sh

or download the original file(s) again

nsk commented 1 year ago

wiht this no problem : https://github.com/traviscross/mtr/releases/tag/v0.95 :)