Skip to content
Advertisement

Install PHP Extension for PHP 5.6 on OSX with deprecated homebrew/php

today I’ve update Brew and now I can’t install the php56-extensions.

On my Mac is installed “php56” and today I had need to install, “php56-redis”, but when I had try to install this extension, Brew returned the following error message.

$ brew install php56-redis

Error: No available formula with the name "php56-redis" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

I see on homebrew/php page that this “tap” is deprecated and for now only PHP engine are migrated on php@5.6 but the extensions not works.

Advertisement

Answer

First install exolnet/homebrew-deprecated

$ brew tap exolnet/homebrew-deprecated

After it install deprecated package

$ brew install php@5.6
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement