我一直在尝试使用命令在MacOS中使用自制软件安装pcntl扩展
brew install homebrew/php/php71-pcntl
brew install homebrew-php/php71-pcntl
也尝试使用 php54, 55, 56, 70 我收到错误
更新自制软件...
Error: No available formula with the name "homebrew/php/php7-pcntl"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/php is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/php)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
为什么在我的Mac上找不到公式,我的Mac上有php 7.1.14
> 在 2018 年 2 月和 3 月,当前支持的 PHP 版本(在撰写本文时为 5.6、7.0、7.1、7.2(的 PHP 公式被移至核心 Homebrew tap,并于 2018 年 4 月将 PHP tap存档。
要安装当前的 PHP 版本 (7.2(,请使用:
$ brew install php
要安装其他受支持的版本之一,请使用:
$ brew install php@5.6
(对于其他版本,将5.6
替换为7.0
或7.1
(。
以这种方式安装的所有公式都包含pcntl
扩展名,不需要任何其他内容。