Here is a step by step instructions on how to run an MTR on MacOS X
- Sometimes we ask our clients when they are having connection problems to our server to run an MTR test for us.
- The MTR tool does not come pre-installed on Mac OS X devices and is not available in the Apple store. To Install it we will first install Homebrew. Installing Homebrew will allow us to install libraries and utilities not available in a default installation:
Users running macOS High Sierra, Sierra, El Capitan, or earlier, run:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Users running Catalina, Mojave, or Big Sur, run:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- Now that homebrew is installed, we can start by installing mtr with the following command
brew install mtr
- Brew will install it to the location
/usr/local/Cellar/mtr/
lets change directory into this location withcd /usr/local/Cellar/mtr/
- Now that we’re in this directory we need to see the version, lets list it with
ls
- Lets assume it’s the latest MTR that would be 0.95 so we will run the following command:
cp /usr/local/Cellar/mtr/0.95/sbin / /usr/local/bin/
if any permission error follows use sudo - Now MTR is installed on your Mac, and you can enter in your terminal
mtr orangewebsite.com
- If an error occurs with your file path please make sure you use root user by typing
sudo -i
in your terminal. - Now run
nano .bash_profile
- And add this line to the file:
alias mtr='/opt/homebrew/sbin/mtr'
- Then click
control X
to save and exit - Now run
source .bash_profile
- Proceed to run
mtr orangewebsite.com