mtr for Mac OS X

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:

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.

Enjoyed this post? Why not sign up to receive Status-Q in your inbox?


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

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.


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

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:

make install?


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.

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.


Thanks a bunch. This saved me having to grab the source and whathave. 🙂
./configure –without-gtk –disable-ipv6 –disable-gtktest
sudo make install

Enjoy )

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.


Hi, thanks a lot, works great 🙂


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

Dear all,

i am newbie to macbookair, i tried to install mtr in my laptop.i followed the installation instruction as in
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$

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

Have you by chance done a mtr-0.87 standalone “native” binary for OS X?

If so, would it also an actual Intel/PPC universal binary – and how far backwards compatible would it be (i.e. OS X 10.4.11, OS X 10.5.8, OS X 10.6.8, etc.)?

Got Something To Say:

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see


© Copyright Quentin Stafford-Fraser