【问题标题】:Unable to find pcntl on homebrew in mac high sierra无法在 mac high sierra 的自制软件上找到 pcntl
【发布时间】:2018-10-30 17:51:22
【问题描述】:

我一直在尝试使用命令在 MacOS High sierra 中使用 homebrew 安装 pcntl 扩展

brew install homebrew/php/php71-pcntl
brew install homebrew-php/php71-pcntl

还尝试使用 php54、55、56、70 我收到错误

正在更新 Homebrew...

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

【问题讨论】:

标签: php macos-high-sierra pcntl


【解决方案1】:

在 2018 年 2 月和 3 月,currently supported PHP versions(撰写本文时为 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扩展名,不需要其他任何内容。

【讨论】:

  • 我已经安装了 7.1,我刚刚做了 brew update php@7.1 但是那里仍然没有 pcntl 扩展
  • 我也已经安装了7.1。没有运气找到'pcntl' :-(
猜你喜欢
  • 2018-07-13
  • 2018-03-09
  • 2018-07-09
  • 2019-05-15
  • 1970-01-01
  • 2018-05-22
  • 2018-10-07
  • 2019-07-25
  • 2018-05-09
相关资源
最近更新 更多