turandot
V2EX  ›  macOS

升级了 10.10 正式版,homebrew 出问题了

  •  
  •   turandot · Oct 17, 2014 · 6189 views
    This topic created in 4424 days ago, the information mentioned may be changed or developed.
    按照池建强给的方法进行homebrew的更新,中间网络问题brew update没有成功。
    重新联网后安装成功了,执行brew doctor后提示:
    Error: No such file or directory - /Library/Developer/CommandLineTools/usr/bin/clang

    BTW,CommandLineTools更新到6.1了,这下怎么破?
    17 replies  •  2014-10-17 18:05:25 +08:00
    system
    system
    Oct 17, 2014
    1
    哈哈哈哈哈哈哈哈
    edisonator
    edisonator
    Oct 17, 2014
    2
    @system ...
    USCONAN
    USCONAN
    Oct 17, 2014
    3
    我這邊兩台 Mac 沒有任何問題唷~

    試著把 Xcode 升級到 6.1 看看, 現在正式版還沒有 Relese 可以找 GM2 裝看看
    turandot
    turandot
    OP
    Oct 17, 2014
    4
    @system .....
    turandot
    turandot
    OP
    Oct 17, 2014
    5
    @USCONAN 怎么感觉不像是Xcode的问题?
    withinthefog
    withinthefog
    Oct 17, 2014❤️1
    6
    安装最新的CommandLineTools可以解决
    https://developer.apple.com/downloads/index.action
    withinthefog
    withinthefog
    Oct 17, 2014
    7
    brew要升级到0.9.5
    USCONAN
    USCONAN
    Oct 17, 2014
    8
    @turandot 倒不是說跟 Xcode 有直接關係, 而是要用到 Command Line Tools 6.1
    單獨裝也是可以,不過就用到這東西的話肯定都會用到 Xcode 吧,所以我才建議說升 Xcode
    USCONAN
    USCONAN
    Oct 17, 2014
    9
    @turandot 刷新後才看到你已經升到 Command Line Tools 6.1 ,這樣還不行的話你需要重新安裝 homebrew,
    首先備份一下你的 Cellar,然後完整的執行 homebrew 卸載步驟,在重新裝回後,還原你的 Cellar 然後雙 Up 一下就可以了
    USCONAN
    USCONAN
    Oct 17, 2014❤️1
    10
    當然在興師動眾的重裝之前你可以先 prune 一下看看能不能解決問題。因為看上去只是一個無效連結的報錯而已
    turandot
    turandot
    OP
    Oct 17, 2014
    11
    @USCONAN prune解决不了,算了,我还是重装一下吧,刚刚来回的折腾,同时升级三台电脑和手机、pad,搞乱了,好像把Cellar给搞没了,郁闷
    turandot
    turandot
    OP
    Oct 17, 2014
    12
    @turandot 如此一番折腾,就是为了体验handoff,到最后发现,苦逼的4S不支持handoff,这是逼我卖肾麽
    a591826944
    a591826944
    Oct 17, 2014
    13
    我想问 brew prune 是干什么的? 按照池建强的那个步骤 这句命令在那个位置运行不了因为那时候 brew 还不能用呢。。。另外想问下 brew doctor 是干嘛的
    USCONAN
    USCONAN
    Oct 17, 2014❤️1
    14
    @a591826944 prune 是用來清理 prefix 中已經失效的 symlinks 的。如果之前自定義過一些東西那麼系統更新後因為環境的改變造成不可用或失效的情況 prune 可以修復。
    doctor 文同其意,就是用來檢測環境是否存在可能導致 brew 無法正常使用的潛在問題的。
    cattyhouse
    cattyhouse
    Oct 17, 2014
    15
    没有任何问题飘走。
    chaixl
    chaixl
    Oct 17, 2014
    16
    xcode-select --install
    Busy
    Busy
    Oct 17, 2014
    17
    老老实实升级 xcode 6.0.1 到 xcode 6.1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1979 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 01:06 · PVG 09:06 · LAX 17:06 · JFK 20:06
    ♥ Do have faith in what you're doing.