代码之家  ›  专栏  ›  技术社区  ›  Dima Lituiev Tom Roth

brew重新安装已安装的依赖项

  •  0
  • Dima Lituiev Tom Roth  · 技术社区  · 2 年前

    我需要安装 postgres@15 在Mac M1上。问题是openssl依赖关系非常古怪,只能手动安装——我成功了 using these instructions . 我可以看到openssl已安装并注册:

    $ brew list | grep ssl
    [email protected]
    openssl@3
    

    现在,当我尝试安装 postgres@15 之后,它仍然尝试下载和构建 openssl@3 :

    $ brew install  postgresql@15
    
    ==> Fetching dependencies for postgresql@15: openssl@3, krb5, readline and xz
    ==> Fetching openssl@3
    Warning: Building openssl@3 from source as the bottle needs:
    - HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is ~/.homebrew/Cellar)
    - HOMEBREW_PREFIX: /opt/homebrew (yours is ~/.homebrew)
    ...
    ==> Downloading https://ftp.postgresql.org/pub/source/v15.5/postgresql-15.5.tar.bz2
    Already downloaded: ~/Library/Caches/Homebrew/downloads/d755958092e4fdc1292d88b06c3cb16b2d4bbb1fa31d6221be89af1c31a47d42--postgresql-15.5.tar.bz2
    ==> Installing dependencies for postgresql@15: openssl@3, krb5, readline and xz
    ==> Installing postgresql@15 dependency: openssl@3
    

    我试过了 brew install --ignore-dependencies postgresql@15 但这似乎在当前的brew版本中被禁用了。

    在安装日志中,我看到以下警告 - HOMEBREW_CELLAR: /opt/homebrew/Cellar (yours is ~/.homebrew/Cellar) ,但我不太清楚它们的含义以及它们的可操作性。

    关于如何防止依赖项重新安装,有什么想法吗?

    0 回复  |  直到 2 年前