douying1119 2018-05-21 05:44
浏览 99

无法在mac high sierra的homebrew上找到pcntl

I have been trying to install pcntl extension using homebrew in MacOS High sierra using command

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

Also tried with php54, 55, 56, 70 I m getting error

Updating 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.

Why its not finding the formulae on my Mac I have php 7.1.14 on my mac

  • 写回答

2条回答

  • doudiemei2013 2018-05-21 05:56
    关注

    In February and March 2018 the PHP formulas for the currently supported PHP versions (5.6, 7.0, 7.1, 7.2 at the moment of this writing) were moved to the core Homebrew tap and in April 2018 the PHP tap has been archived.

    To install the current PHP version (7.2) use:

    $ brew install php
    

    To install one of the other supported versions use:

    $ brew install php@5.6
    

    (replace 5.6 with 7.0 or 7.1 for the other versions).

    All the formulas installed this way contain the pcntl extension, there is no need for anything else.

    评论

报告相同问题?

悬赏问题

  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)