mtr on mavericks via rudix(‘s ports collection)

With thanks to and

hg clone rudix
cd rudix/Ports/mtr

You’ll need to update the Makefile:

diff -r 11e7e05f8dd7 Ports/mtr/Makefile
--- a/Ports/mtr/Makefile Fri Jul 20 18:29:04 2012 -0300
+++ b/Ports/mtr/Makefile Thu Feb 13 16:03:51 2014 +1100
@@ -2,7 +2,7 @@

Title= MTR
Name= mtr
-Version= 0.82
+Version= 0.85
Revision= 1
Source= $(Name)-$(Version).tar.gz

Now you’ll need to provide one small patch to be applied while building:

mkdir patches

Make yourself a patch file that looks like this:

diff -rupN mtr-build.orig/asn.c mtr-build/asn.c
--- asn.c 2014-02-13 15:59:36.000000000 +1100
+++ asn.c 2014-02-13 15:59:46.000000000 +1100
@@ -21,7 +21,7 @@
 #include <sys/types.h>

-#ifndef __APPLE__
+#ifdef __APPLE__
 #define BIND_8_COMPAT
 #include <arpa/nameser.h>

now you can

make build

cd mtr-build/
sudo make install

One Comment

  1. jamezpolley says:

    Tried this again today on a new machine. It failed because the rudix makefile has been updated to pull down a .tgz from github which isn’t intended to be used as a complete build.

    I’ve submitted which switches back to using the release tarball from the bitwizard site, as well as including the above patch.

Leave a Reply