编译安装MTR for MAC snow leopard



mtr是什么, mtr = ping + traceroute

google了解更多


ftp://ftp.bitwizard.nl/mtr/mtr-0.75.tar.gz


tar -zxvf mtr-0.75.tar.gz

./configure –without-gtk –disable-ipv6 –disable-gtktest

make

Undefined symbols:
  "_res_9_dn_expand", referenced from:
      _parserespacket in dns.o
      _parserespacket in dns.o
      _parserespacket in dns.o
  "_res_9_init", referenced from:
      _dns_open in dns.o
  "_res_9_mkquery", referenced from:
      _dorequest in dns.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

change configure with:


LIBS=-lresolv ./configure –without-gtk –disable-ipv6 –disable-gtktest
make
sudo make install

DONE.


你可能感兴趣的