MTR NOT WORKING IN MAC OS X

Problem 1


mtr google.com
mtr: unable to get raw sockets.

Solution 1

# Follow your version for mtr with `0.86`
sudo chown root:wheel /usr/local/Cellar/mtr/0.86/sbin/mtr
sudo chmod u+s /usr/local/Cellar/mtr/0.86/sbin/mtr

Problem 2


mtr google.com
mtr: command not found

Solution 2

alias mtr=/usr/local/sbin/mtr

Problem 3


mtr 0.92 之后, 需要使用root。(Ref: github)

Solution 3

// add /usr/local/sbin to your PATH
export PATH=/usr/local/sbin:$PATH

//Ref: https://github.com/Homebrew/homebrew-core/issues/14669
# sudo mtr baidu.com

Ref

mtr not working in Mac OS X

Show Comments