Screen-Shot-2011-11-22-at-1.33.55-PM

How to install MTR on Mac OS X Lion

If you liked using WinMTR on Windows machines to troubleshoot network connections and latency and looking for a similar tool on a Mac OS X there is an app for that.

It’s called MTR, written by Matt Kimball. MTR stands for Matt TraceRoute or My TraceRoute whichever works for you.

On your Mac, start by downloading latest version from this FTP resource (scroll to the end and download .tar.gz file):

ftp://ftp.bitwizard.nl/mtr/

To unpack it, double click on the file in Finder. Assuming it’s in ~Downloads folder, open Terminal and type the following:

cd Downloads
cd mtr-0.81
export LIBS='-lm -ltermcap -lresolv'
./configure
make
sudo make install
alias mtr=/usr/local/sbin/mtr

To permanently save the alias, run this:


open ~/.bash_profile

add to the file:

alias mtr=/usr/local/sbin/mtr

Now to use it, open Terminal and type mtr with IP address:

mtr 8.8.8.8

Enjoy

4 thoughts on “How to install MTR on Mac OS X Lion”

  1. On macos 10.8.3, I get this error as one of the messages during ./configure:

    checking for GTK+ – version >= 2.6.0… no
    *** Could not run GTK+ test program, checking why…
    *** The test program failed to compile or link. See the file config.log for the
    *** exact error that occured. This usually means GTK+ is incorrectly installed.

    And make fails.

Leave a Reply to Kaupo Parmas Cancel reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>