【问题标题】:Why can't I install openssl on my Mac by homebrew?为什么我不能通过自制软件在我的 Mac 上安装 openssl?
【发布时间】:2021-08-26 05:40:48
【问题描述】:

我运行以下代码,显示在 brew 中没有找到 openssl repo。

我的 Mac 是 macOS Big Sur 11.3.1

% brew install openssl
Updating Homebrew...
fatal: Could not resolve HEAD to a revision
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 1 cask.

Warning: No available formula or cask with the name "openssl".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
This formula was found in a tap:
homebrew/portable-ruby/portable-openssl
To install it, run:
  brew install homebrew/portable-ruby/portable-openssl

更新

似乎我的 brew 也无法安装 ccache,如下所示。这更像是一个酿造问题?

brew install ccache

【问题讨论】:

    标签: macos openssl homebrew


    【解决方案1】:

    试试这个把它放在终端并运行:

    brew卸载openssl;冲泡卸载openssl;酿造安装https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

    【讨论】:

    • 还有另一个错误:Traceback(最近一次调用最后一次):brew extract 或 brew create 和 brew tap-new 改为在 GitHub 上点击创建公式文件。:无效用法:非不支持从任意 URL 下载 openssl 公式文件的校验和! (UsageError)
    • 我试试这个,效果很好: brew uninstall openssl --ignore-dependencies brew tap-new $USER/old-openssl brew extract --version=1.0.2t openssl $USER/old-openssl brew install openssl@1.0.2t
    【解决方案2】:

    以下命令帮助

    cd /usr/local/Homebrew/Library/Taps/homebrew/
    rm -rf homebrew-core
    git clone https://github.com/Homebrew/homebrew-core.git
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-18
      • 2018-06-25
      • 1970-01-01
      • 1970-01-01
      • 2017-12-28
      • 2018-11-07
      • 1970-01-01
      相关资源
      最近更新 更多