V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
cairnechen
V2EX  ›  问与答

实在不想安装 xcode,已经从 Apple Developer 安装 Command Line Tools 成功了,为啥 brew upgrade 还是提示需要执行 xcode-select --install?

  •  
  •   cairnechen · 2021-02-07 10:17:31 +08:00 · 2268 次点击
    这是一个创建于 1178 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Warning: Building [email protected] from source:
    The bottle needs the Apple Command Line Tools to be installed.
    You can install them, if desired, with:
    xcode-select --install
    8 条回复    2021-02-07 13:48:11 +08:00
    xieren58
        1
    xieren58  
       2021-02-07 10:29:15 +08:00
    没 xcode 怎么编译?
    lululau
        2
    lululau  
       2021-02-07 10:36:44 +08:00
    sudo xcode-select -r && sudo xcode-select --install
    cairnechen
        3
    cairnechen  
    OP
       2021-02-07 10:47:57 +08:00
    @xieren58 你在说啥,之前一直都是只要 Command Line Tools 就够了
    LinusXu
        4
    LinusXu  
       2021-02-07 11:09:55 +08:00
    每次 macOS 升级后都需要重新安装 CLT,估计是因为每次升级同时会有 Xcode 的更新
    cairnechen
        5
    cairnechen  
    OP
       2021-02-07 11:12:24 +08:00
    @LinusXu 我刚才试着重新在 Apple Developer 下载了最新版,好家伙,可以了,看起来这个提示其实不是说你没有安装 Command Line Tools,而是说你的 Command Line Tools 没有更新到最新版
    chinvo
        6
    chinvo  
       2021-02-07 11:58:57 +08:00
    @cairnechen #4 不是的, 系统更新会删除旧版 Command Line Tools...
    LearningToCode
        7
    LearningToCode  
       2021-02-07 12:14:39 +08:00
    XCode 还是得下一个,每次系统更新前就推送 XCode 更新。
    cairnechen
        8
    cairnechen  
    OP
       2021-02-07 13:48:11 +08:00
    @chinvo 啊?是这个原因吗,前两天我的确更新了 11.2,不过我特地看了 /Library/Developer/CommandLineTools 还在的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2203 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:56 · PVG 23:56 · LAX 08:56 · JFK 11:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.