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
Once successfully installing php@7.2 from brew. Stop php7.1 and Start php7.2
brew services stop php@7.1
brew unlink php71
And
brew services start php@7.2
brew link php72
If it fails run the following
echo 'export PATH="/usr/local/opt/php@7.2/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/php@7.2/sbin:$PATH"' >> ~/.zshrc
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.