liguoshu
V2EX  ›  macOS

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

  •  
  •   liguoshu · Feb 26, 2021 · 2185 views
    This topic created in 1908 days ago, the information mentioned may be changed or developed.
    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 replies    2021-03-02 18:49:48 +08:00
    BrettD
        1
    BrettD  
       Feb 26, 2021 via iPhone
    你 Homebrew 版本需要升级
    LinusXu
        2
    LinusXu  
       Mar 1, 2021
    (没有用过,只是相对通用的建议)先更新 Homebrew 本体和 Python 。
    同时不排除是兼容性的问题,因为 PHP 5.6 已经停止维护,可能与新的 Python 3.9 冲突。如果如此可以考虑 homebrew/core 中的 [email protected] (只适用于 Intel Mac )或 [email protected],然后临时改一下链接。
    volvo007
        3
    volvo007  
       Mar 2, 2021 via iPhone
    补充一下,最新的 brew 执行 update 之后一般默认也会给现有的库升级到最新,从而导致有时候新版的库和某些组件不兼容。

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

    装完之后需要看一下老版本是否是当前环境。如果不是的话,记得运行下 brew unlink —force 新版本 和 brew link 老版本,做一个链接的解绑和绑定
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 22:32 · PVG 06:32 · LAX 15:32 · JFK 18:32
    ♥ Do have faith in what you're doing.