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

修复 Homebrew 误删 Cellar 文件夹

  •  
  •   Marthers · 2017-05-29 23:50:49 +08:00 · 2349 次点击
    这是一个创建于 2722 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Homebrew 之前一直无法 update,按照网上教程
    rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/instal l/master/install)"

    之后很多工具用不了了,系统剪切板也无效了,用 brew doctor 报出以下错误:
    Warning: Unbrewed dylibs were found in /usr/local/lib.
    If you didn't put them there on purpose they could cause problems when
    building Homebrew formulae, and may need to be deleted.

    Warning: Unbrewed header files were found in /usr/local/include.
    If you didn't put them there on purpose they could cause problems when
    building Homebrew formulae, and may need to be deleted.

    求各位大神支支招,万分感谢!
    1 条回复    2017-05-30 00:10:18 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   900 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 21:16 · PVG 05:16 · LAX 13:16 · JFK 16:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.