OS X Mavericks 10.9 下如何安装 MTR

2013-06-13 10:05:21 +08:00
 iZr
编译安装提示:

make: *** No targets specified and no makefile found. Stop.

brew install mtr

提示:

http://d.pr/i/4oGP
6598 次点击
所在节点    macOS
12 条回复
helloleo
2013-06-15 12:23:00 +08:00
± brew install mtr
==> Downloading http://ftp.de.debian.org/debian/pool/main/m/mtr/mtr_0.82.orig.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/mtr/0.82 --without-gtk
==> make install
==> Caveats
mtr requires superuser privileges. You can either run the program
via `sudo`, or change its ownership to root and set the setuid bit:

sudo chown root:wheel /usr/local/Cellar/mtr/0.82/sbin/mtr
sudo chmod u+s /usr/local/Cellar/mtr/0.82/sbin/mtr

In any case, you should be certain that you trust the software you
are executing with elevated privileges.
==> Summary
iZr
2013-06-15 12:34:17 +08:00
@helloleo brew install mtr
==> Downloading http://ftp.de.debian.org/debian/pool/main/m/mtr/mtr_0.82.orig.tar.gz
Already downloaded: /Library/Caches/Homebrew/mtr-0.82.tar.gz
==> ./configure --prefix=/usr/local/Cellar/mtr/0.82 --without-gtk
checking for res_mkquery... no
checking for res_mkquery in -lbind... no
checking for res_mkquery in -lresolv... no
checking for __res_mkquery in -lresolv... no
configure: error: No resolver library found

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
xatest
2013-06-15 12:42:01 +08:00
brew update没?
qlqsh
2013-06-15 13:26:47 +08:00
我觉得测试版的话,最好别搞这些个,会很麻烦,得不偿失。。。
iZr
2013-06-15 13:51:04 +08:00
@xatest updata了。貌似是 编译 不了。xcode 5 comand tools 不知道怎么安装。
venmos
2013-06-15 23:05:24 +08:00
venmos
2013-06-15 23:08:20 +08:00
@iZr 或者上https://developer.apple.com/downloads/index.action下载command tools for 10.8,然后修改/System/Library/CoreServices/SystemVersion.plist里的ProductUserVisibleVersion和ProductVersion为10.8,就可以安装command tools for 10.8了...
iZr
2013-06-15 23:09:46 +08:00
@venmos 我在下载 osx-gcc-installer 10.8了。安装好就ok?
venmos
2013-06-15 23:10:17 +08:00
@iZr 差点忘了说了...装完command tools后记得再把版本号改回去,要不会出莫名其妙的问题...
venmos
2013-06-16 23:12:19 +08:00
@iZr 修改系统版本号的办法我试了,可以安装Command Tools,不过我是在虚拟机里试的...
franksin
2013-06-17 09:15:13 +08:00
修改系统版本号的办法我试了,可以安装Command Tools,我现在就在用,xcode 5 preview和开发神马的都没有问题
ivyliner
2013-10-30 23:27:21 +08:00
brew install mtr --HEAD

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/72204

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX