V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iZr
V2EX  ›  macOS

OS X Mavericks 10.9 下如何安装 MTR

  •  
  •   iZr · 2013-06-13 10:05:21 +08:00 · 6716 次点击
    这是一个创建于 4182 天前的主题,其中的信息可能已经有所发展或是发生改变。
    编译安装提示:

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

    brew install mtr

    提示:

    http://d.pr/i/4oGP
    12 条回复    1970-01-01 08:00:00 +08:00
    helloleo
        1
    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
        2
    iZr  
    OP
       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
        3
    xatest  
       2013-06-15 12:42:01 +08:00
    brew update没?
    qlqsh
        4
    qlqsh  
       2013-06-15 13:26:47 +08:00
    我觉得测试版的话,最好别搞这些个,会很麻烦,得不偿失。。。
    iZr
        5
    iZr  
    OP
       2013-06-15 13:51:04 +08:00
    @xatest updata了。貌似是 编译 不了。xcode 5 comand tools 不知道怎么安装。
    venmos
        6
    venmos  
       2013-06-15 23:05:24 +08:00
    venmos
        7
    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
        8
    iZr  
    OP
       2013-06-15 23:09:46 +08:00
    @venmos 我在下载 osx-gcc-installer 10.8了。安装好就ok?
    venmos
        9
    venmos  
       2013-06-15 23:10:17 +08:00
    @iZr 差点忘了说了...装完command tools后记得再把版本号改回去,要不会出莫名其妙的问题...
    venmos
        10
    venmos  
       2013-06-16 23:12:19 +08:00
    @iZr 修改系统版本号的办法我试了,可以安装Command Tools,不过我是在虚拟机里试的...
    franksin
        11
    franksin  
       2013-06-17 09:15:13 +08:00
    修改系统版本号的办法我试了,可以安装Command Tools,我现在就在用,xcode 5 preview和开发神马的都没有问题
    ivyliner
        12
    ivyliner  
       2013-10-30 23:27:21 +08:00
    brew install mtr --HEAD
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2816 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:52 · PVG 19:52 · LAX 03:52 · JFK 06:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.