mtr for Mac OS X
June 14th, 2006MTR is a useful command-line utility which combines ping and traceroute to display the path packets are taking between two machines.
I’ve compiled mtr-0.71 it for Mac OS X, and you can get it here: mtr.zip.
The zip file contains a universal binary, a man page, and a README file telling you what to do with them.
If you like this, you might also like my ports of wget and bacula-fd.
June 14th, 2006 at 10:30 am
Cool stuff – perhaps worth submitting a port file for darwinports? Darwinports has wget and bacula in there already (no idea if bacula == bacula-fd is true…).
Usually my second task on getting a new mac is to run DP and install a bunch of “essentials” such as latex, gnuplot, wget, and so on. The first task is to install the dev tools of course, as DP builds from source
Of course, I should also point out that ping type tools only show the path from you to a host, and path from the host to you may not be the same (particularly if ISPs between you and the destination use hot potato routing). And then there’s the assumption ICMP traffic is routed the same as other IP traffic (though I’ve not seen a case where that’s not the case, whereas I have seen the hot potato effect).
June 14th, 2006 at 10:50 am
Hi Dougal –
Well, the changes I made were trivial and are mentioned in the README. One of the reasons I build these ‘native’ binaries is so I don’t need to install Fink, Darwinports,etc.
Great though those projects are, there’s just too much clutter for me – I usually only need a few extra things and prefer to have them independent of such infrastructures. But that’s just my taste…
Yes, the routing point is a good one.
Best,
Quentin
November 18th, 2006 at 11:50 pm
Just got my first mac, and was looking form mtr wanted to say thanks for your work.
November 27th, 2006 at 3:36 pm
Awesome stuff. One question though, how would I go about compiling mtr on my mac? (I ask b/c there are other programs that I want to use, but I can’t find them for Mac OS X… so how should I go about compiling something for my mac? Is it just:
./configure
make
make install?
Thanks!
March 28th, 2007 at 5:34 pm
Great stuff!! Just wanted to say thanks for the compiled mtr. Like you I only need a few tools that I miss from Linux, and having them without having to install a bunch of things and compiling from scratch is just great.
June 11th, 2007 at 3:04 pm
Just to let you know, mtr 0.71 compiles on the osx 10.4 if you add
#define BIND_8_COMPAT
to the top of dns.c You don’t have to do any function renaming.
steve
April 22nd, 2008 at 10:29 pm
Thanks a bunch. This saved me having to grab the source and whathave.
September 21st, 2008 at 11:20 am
ftp://ftp.bitwizard.nl/mtr/mtr-0.75.tar.gz
./configure –without-gtk –disable-ipv6 –disable-gtktest
make
sudo make install
Enjoy )
October 22nd, 2008 at 12:06 am
Thanks – I didn’t want to install Fink or Darwin Ports — just for one app. So a big thank you for compiling it and making it available.
Regards,
Sean
January 21st, 2009 at 10:32 am
Hi, thanks a lot, works great
-Rich-
February 19th, 2009 at 1:59 pm
Thank you so much for the quick and easy MTR and WGET.
June 1st, 2009 at 10:44 am
Dear all,
i am newbie to macbookair, i tried to install mtr in my laptop.i followed the installation instruction as in http://mtr.darwinports.com/
but i got following error message ,Can any one help me out?
-Dangis-MacBook-Air:~ sudeep$ sudo port install mtr
—> Configuring mtr
Error: Target org.macports.configure returned: configure failure: shell command ” cd “/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_mtr/work/mtr-0.75″ && ./configure –prefix=/opt/local –without-gtk ” returned error 77
Command output: checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for gawk… no
checking for mawk… no
checking for nawk… no
checking for awk… awk
checking whether make sets $(MAKE)… no
checking for gcc… /usr/bin/gcc-4.0
checking for C compiler default output file name…
configure: error: C compiler cannot create executables
See `config.log’ for more details.
Error: Status 1 encountered during processing.
Sudeep-Dangis-MacBook-Air:~ sudeep$