安装macOS 10.15 Catalina时缺少PHP 7.3.8 zip扩展名 [英] PHP 7.3.8 zip extension missing from install of macOS 10.15 Catalina

查看:619
本文介绍了安装macOS 10.15 Catalina时缺少PHP 7.3.8 zip扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MacOS 10.15 Catalina安装的PHP7.3.8版本不包含PHP扩展zip.我该如何查找并安装该zip扩展名.

MacOS 10.15 Catalina installed version of PHP7.3.8 does not include the PHP extension zip. How do I go about finding and installing that zip extension.

仅安装php73-zip便没有报告该名称的可用公式.

Brew install php73-zip reports no available formula with that name.

推荐答案

这是我发现的@ 为Mac安装ext-zip

将Mac更新到Catalina之后,我遇到了同样的问题.这是对我有用的东西.

I had the same problem after updating my Mac to Catalina. Here is what worked for me.

brew update
brew install php@7.3
brew link php@7.3

然后重新加载控制台.

它将使用zip模块安装PHP 7.3.10.您可以使用PHP -v检查版本,而使用PHP -m检查模块.

It will install PHP 7.3.10 with the zip module. You can use PHP -v to check for the version, and PHP -m for the modules.

旁注:如果您没有安装Homebrew(酿造) 您可以访问: https://brew.sh/

Side note: in case you don't have Homebrew (brew) installed you can visit: https://brew.sh/

Homebrew(brew)的基本安装

A basic install of Homebrew (brew)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

将其粘贴到macOS终端提示中.

Paste that in a macOS Terminal prompt.

这篇关于安装macOS 10.15 Catalina时缺少PHP 7.3.8 zip扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆