mtr for Mac OS X

June 14th, 2006

MTR 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.

Posted on Wednesday, June 14th, 2006 at 9:21 am and filed under Apple, General.

13 Responses to “mtr for Mac OS X”

  1. Dougal Says:

    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).

  2. qsf Says:

    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

  3. Noel Says:

    Just got my first mac, and was looking form mtr wanted to say thanks for your work.

  4. Nathan Says:

    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!

  5. Gustavo Diogenes Says:

    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.

  6. Steve Rawlinson Says:

    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

  7. Matt Says:

    Thanks a bunch. This saved me having to grab the source and whathave. :-)

  8. localhost Says:

    ftp://ftp.bitwizard.nl/mtr/mtr-0.75.tar.gz
    ./configure –without-gtk –disable-ipv6 –disable-gtktest
    make
    sudo make install

    Enjoy )

  9. Sean Says:

    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

  10. richardsim7 Says:

    Hi, thanks a lot, works great :)

    -Rich-

  11. Edward Miller Says:

    Thank you so much for the quick and easy MTR and WGET.

  12. Sudeep Dangi Says:

    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$

  13. CvD Says:

    Thanks for this standalone version! Makes it easy to use instead of having to install darwinports first!

Leave a Reply