简体   繁体   English

Homebrew 无法将 php 升级到 7.4(无法安装 openssl 1.1) High Sierra

[英]Homebrew fails to upgrade php to 7.4 (fails to install openssl 1.1) High Sierra

I'm trying to upgrade my php from 7.1 to 7.4 in my Mac with High Sierra (10.13.6) using homebrew.我正在尝试使用自制软件在我的带有 High Sierra (10.13.6) 的 Mac 中将我的 php 从 7.1 升级到 7.4。 So I run:所以我跑:

brew install php@7.4

but it gets stuck at:但它卡在:

==> Installing php@7.4 dependency: openssl@1.1
==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.1/1.1.1k --openssldir=
==> make
==> make install MANDIR=/usr/local/Cellar/openssl@1.1/1.1.1k/share/man MANSUFFIX
==> make test

If I try to install the openssl package it fails too.如果我尝试安装 openssl package 它也会失败。 It's that package that is causing the issue because i can install any other package with brew without issues.是 package 导致了问题,因为我可以安装任何其他 package 与 brew 没有问题。

At the end I gave up and upgraded the OS to 10.15.最后我放弃并将操作系统升级到 10.15。 Now I am able to upgrade to PHP 7.4 without problems.现在我可以毫无问题地升级到 PHP 7.4。

High Sierra is not in the Homebrew support list( Homebrew 2.6 release notes ). High Sierra 不在 Homebrew 支持列表中( Homebrew 2.6 发行说明)。 Currently, Homebrew only supports Mojave, Catalina, Big Sur.目前,Homebrew 仅支持 Mojave、Catalina、Big Sur。 So upgrading the macOS is a good call.所以升级 macOS 是个好主意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM