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

mac pro11.2brew 安装软件报错,各位大佬怎么解决

  •  
  •   liguoshu · 2021-02-26 10:26:22 +08:00 · 1310 次点击
    这是一个创建于 1147 天前的主题,其中的信息可能已经有所发展或是发生改变。
    brew install [email protected]
    Updating Homebrew...
    Warning: You are using macOS 11.2.
    We do not provide support for this pre-release version.
    You will encounter build failures with some formulae.
    Please create pull requests instead of asking for help on Homebrew's GitHub,
    Discourse, Twitter or IRC. You are responsible for resolving any issues you
    experience while you are running this pre-release version.

    ==> Installing [email protected] from exolnet/deprecated
    Error: [email protected]: undefined method `on_macos' for #<PourBottleCheck:0x00007feb79219050>
    3 条回复    2021-03-02 18:49:48 +08:00
    BrettD
        1
    BrettD  
       2021-02-26 22:01:30 +08:00 via iPhone
    你 Homebrew 版本需要升级
    LinusXu
        2
    LinusXu  
       2021-03-01 17:14:55 +08:00
    (没有用过,只是相对通用的建议)先更新 Homebrew 本体和 Python 。
    同时不排除是兼容性的问题,因为 PHP 5.6 已经停止维护,可能与新的 Python 3.9 冲突。如果如此可以考虑 homebrew/core 中的 [email protected] (只适用于 Intel Mac )或 [email protected],然后临时改一下链接。
    volvo007
        3
    volvo007  
       2021-03-02 18:49:48 +08:00 via iPhone
    补充一下,最新的 brew 执行 update 之后一般默认也会给现有的库升级到最新,从而导致有时候新版的库和某些组件不兼容。

    这种情况可以 brew install 库名 @版本号 安装某个库的对应版本

    装完之后需要看一下老版本是否是当前环境。如果不是的话,记得运行下 brew unlink —force 新版本 和 brew link 老版本,做一个链接的解绑和绑定
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   956 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:03 · PVG 06:03 · LAX 15:03 · JFK 18:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.